From: Nathan Froyd Date: Tue, 8 Jun 2010 20:30:03 +0000 (-0700) Subject: hw: honor low bit in mipssim machine X-Git-Tag: v0.13.0-rc0~337 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aecf13769852a4e14b51e8403860b18871826298;p=thirdparty%2Fqemu.git hw: honor low bit in mipssim machine Signed-off-by: Nathan Froyd Signed-off-by: Aurelien Jarno --- diff --git a/hw/mips_mipssim.c b/hw/mips_mipssim.c index a747de596c9..293d99ebeef 100644 --- a/hw/mips_mipssim.c +++ b/hw/mips_mipssim.c @@ -106,7 +106,10 @@ static void main_cpu_reset(void *opaque) CPUState *env = s->env; cpu_reset(env); - env->active_tc.PC = s->vector; + env->active_tc.PC = s->vector & ~(target_ulong)1; + if (s->vector & 1) { + env->hflags |= MIPS_HFLAG_M16; + } } static void