The following patch enforces that the sh4 target is 32 bit to prevent qemu to expand incorrectly to a 64 bit wide cpu if compiled in a 64 bit host.
Carlo --- Index: target-sh4/cpu.h =================================================================== RCS file: /sources/qemu/qemu/target-sh4/cpu.h,v retrieving revision 1.12 diff -u -r1.12 cpu.h --- target-sh4/cpu.h 10 Nov 2007 15:15:53 -0000 1.12 +++ target-sh4/cpu.h 30 Nov 2007 16:08:38 -0000 @@ -22,6 +22,7 @@ #include "config.h" +#define TARGET_PHYS_ADDR_BITS 32 #define TARGET_LONG_BITS 32 #define TARGET_HAS_ICE 1