diff options
author | 陳韋任 (Wei-Ren Chen) <chenwj@iis.sinica.edu.tw> | 2012-12-11 00:15:55 +0800 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2013-01-01 12:02:24 +0100 |
commit | 0f0b93980572726e69e32ff13e2d7fb72b936157 (patch) | |
tree | 734ff24b27a88099083c341678ea55850b1aff86 | |
parent | c4aaba92e516ad061dff7ac2ae3c2b2b7058c404 (diff) |
target-mips: Use EXCP_SC rather than a magic number
From the discussion on the ML [1], the exception limit defined by
magic number 0x100 is actually EXCP_SC defined in cpu.h. Replace the
magic number with EXCP_SC. Remove "#if 1 .. #endif" as well.
[1] http://lists.gnu.org/archive/html/qemu-devel/2012-11/msg03080.html
Signed-off-by: Chen Wei-Ren <chenwj@iis.sinica.edu.tw>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r-- | target-mips/op_helper.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c index e3ab05cbb0..d833d78b4f 100644 --- a/target-mips/op_helper.c +++ b/target-mips/op_helper.c @@ -38,10 +38,9 @@ static inline void QEMU_NORETURN do_raise_exception_err(CPUMIPSState *env, int error_code, uintptr_t pc) { -#if 1 - if (exception < 0x100) + if (exception < EXCP_SC) { qemu_log("%s: %d %d\n", __func__, exception, error_code); -#endif + } env->exception_index = exception; env->error_code = error_code; |