mirror of https://github.com/xemu-project/xemu.git
hw: honor low bit in mipssim machine
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
0fddbbf255
commit
aecf137698
|
@ -106,7 +106,10 @@ static void main_cpu_reset(void *opaque)
|
||||||
CPUState *env = s->env;
|
CPUState *env = s->env;
|
||||||
|
|
||||||
cpu_reset(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
|
static void
|
||||||
|
|
Loading…
Reference in New Issue