unicorn/qemu/target/m68k
Kamil Rytarowski b10922fb33
target/m68k: Switch fpu_rom from make_floatx80() to make_floatx80_init()
GCC 4.7.2 on SunOS reports that the values assigned to array members are not
real constants:

target/m68k/fpu_helper.c:32:5: error: initializer element is not constant
target/m68k/fpu_helper.c:32:5: error: (near initialization for 'fpu_rom[0]')
rules.mak:66: recipe for target 'target/m68k/fpu_helper.o' failed

Convert the array to make_floatx80_init() to fix it.
Replace floatx80_pi-like constants with make_floatx80_init() as they are
defined as make_floatx80().

This fixes build on SmartOS (Joyent).

Backports commit 6fa9ba09dbf4eb8b52bcb47d6820957f1b77ee0b from qemu
2018-03-04 23:05:01 -05:00
..
cpu-qom.h Move target-* CPU file into a target/ folder 2018-03-01 22:50:58 -05:00
cpu.c target-m68k: add FPCR and FPSR 2018-03-03 19:51:31 -05:00
cpu.h target-m68k: add FPCR and FPSR 2018-03-03 19:51:31 -05:00
fpu_helper.c target/m68k: Switch fpu_rom from make_floatx80() to make_floatx80_init() 2018-03-04 23:05:01 -05:00
helper.c target-m68k: move FPU helpers to fpu_helper.c 2018-03-03 15:04:05 -05:00
helper.h target/m68k: add fmovem 2018-03-03 21:05:56 -05:00
Makefile.objs target-m68k: move FPU helpers to fpu_helper.c 2018-03-03 15:04:05 -05:00
op_helper.c Move target-* CPU file into a target/ folder 2018-03-01 22:50:58 -05:00
qregs.def target-m68k: use floatx80 internally 2018-03-03 19:35:17 -05:00
translate.c gen-icount: check cflags instead of use_icount global 2018-03-04 14:26:26 -05:00
unicorn.c Move target-* CPU file into a target/ folder 2018-03-01 22:50:58 -05:00
unicorn.h Move target-* CPU file into a target/ folder 2018-03-01 22:50:58 -05:00