diff options
author | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2011-04-11 23:57:07 +0200 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2011-04-11 23:57:07 +0200 |
commit | 2e42d52d95d613e38961727e6bac2028681340e3 (patch) | |
tree | f86ac9c05e2405670240609603410868f6c0d72e | |
parent | 3b584046aae87df3ac195cc85b89ff86c1a8db01 (diff) |
microblaze: Correct ec mask in debug print
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
-rw-r--r-- | linux-user/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index e651bfdad8..91600877d2 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -2258,7 +2258,7 @@ void cpu_loop (CPUState *env) break; default: printf ("Unhandled hw-exception: 0x%x\n", - env->sregs[SR_ESR] & 5); + env->sregs[SR_ESR] & ESR_EC_MASK); cpu_dump_state(env, stderr, fprintf, 0); exit (1); break; |