projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fddbbf
)
hw: honor low bit in mipssim machine
author
Nathan Froyd
<froydnj@codesourcery.com>
Tue, 8 Jun 2010 20:30:03 +0000
(13:30 -0700)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Wed, 9 Jun 2010 14:10:51 +0000
(16:10 +0200)
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/mips_mipssim.c
patch
|
blob
|
history
diff --git
a/hw/mips_mipssim.c
b/hw/mips_mipssim.c
index a747de596c919a51a6643e6c97d06290224dfffd..293d99ebeef5859ccf7517079d2999374eee8c26 100644
(file)
--- 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