]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
target-sh4: move features flag after CPU_COMMON
authorBobby Bingham <koorogi@koorogi.info>
Sun, 24 Nov 2013 20:03:05 +0000 (14:03 -0600)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 9 Dec 2013 15:41:23 +0000 (16:41 +0100)
commit21c046118e740704d0ba81f6281dc95905bc30a8
tree2a12c1bf0ddfcaf3bdeb3f03bb252ada89ab214c
parenta1d22a367d5780c9553b2cd5a24f665534ce6ed6
target-sh4: move features flag after CPU_COMMON

Everything before CPU_COMMON in the structure is cleared as part of a
CPU reset. This included the features flag, which indicates whether SH4A
instructions are supported or not. As a result, a CPU reset downgraded
the CPU from an SH4A to an SH4.

Signed-off-by: Bobby Bingham <koorogi@koorogi.info>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-sh4/cpu.h