[hatari-devel] WinUae CPU for hatari

Laurent Sallafranque laurent.sallafranque at free.fr
Thu Nov 4 23:44:47 CET 2010


Some news :

I've corrected many linking problems.
There are still many to correct.

I think I've included a bit more code than necessary.
We'll clean that later, when hatari will run with WinUae core.


But I've got a big problem with the main cpu core code :

When linking, I get thousands of lines like these ones :

cpu/libUaeCpu.a(cpustbl.c.o):(.rodata+0x0): undefined reference to 
`op_0000_0_ff'
cpu/libUaeCpu.a(cpustbl.c.o):(.rodata+0x10): undefined reference to 
`op_0010_0_ff'
cpu/libUaeCpu.a(cpustbl.c.o):(.rodata+0x20): undefined reference to 
`op_0018_0_ff'
cpu/libUaeCpu.a(cpustbl.c.o):(.rodata+0x30): undefined reference to 
`op_0020_0_ff'
cpu/libUaeCpu.a(cpustbl.c.o):(.rodata+0x40): undefined reference to 
`op_0028_0_ff'
cpu/libUaeCpu.a(cpustbl.c.o):(.rodata+0x50): undefined reference to 
`op_0030_0_ff'
cpu/libUaeCpu.a(cpustbl.c.o):(.rodata+0x60): undefined reference to 
`op_0038_0_ff'
cpu/libUaeCpu.a(cpustbl.c.o):(.rodata+0x70): undefined reference to 
`op_0039_0_ff'
cpu/libUaeCpu.a(cpustbl.c.o):(.rodata+0x80): undefined reference to 
`op_003c_0_ff'
cpu/libUaeCpu.a(cpustbl.c.o):(.rodata+0x90): undefined reference to 
`op_0040_0_ff'
...
cpu/libUaeCpu.a(cpustbl.c.o):(.rodata+0x52800): undefined reference to 
`op_f370_21_ff'
cpu/libUaeCpu.a(cpustbl.c.o):(.rodata+0x52810): undefined reference to 
`op_f378_21_ff'
cpu/libUaeCpu.a(cpustbl.c.o):(.rodata+0x52820): undefined reference to 
`op_f379_21_ff'
cpu/libUaeCpu.a(cpustbl.c.o):(.rodata+0x52830): undefined reference to 
`op_f37a_21_ff'
cpu/libUaeCpu.a(cpustbl.c.o):(.rodata+0x52840): undefined reference to 
`op_f37b_21_ff'


I've included here the firsts and lasts lines.

It seems that gencpu.c generates many opcodes in cputbl.h but doesn't 
generate the corresponding code in cpuemu.c

I've compared the size of the generated files.
New winuae cpu core is bigger for cpustbl.c and cputbl.h, but is really 
smaller for cpuemu.c (which shouldn't be from my point of view)

New WinUAE core :
987918  2010-11-04 22:06 cpuemu.c
1121982 2010-11-04 22:06 cpustbl.c
745982  2010-11-04 22:06 cputbl.h

Old Uae_CPU core :
2143826 2010-10-20 16:56 cpuemu.c
237658  2010-10-20 16:56 cputbl.h
453441  2010-10-20 16:56 cpustbl.c

Have you got an idea of where the problem could be ?
Have you encountered the same problem last time you included uae_core 
into hatari ?

Regards

Laurent





More information about the hatari-devel mailing list