mirror of https://github.com/xemu-project/xemu.git
target-sparc: Make CPU_LOG_INT useful by default
No need for ifdefs when the log mask does just as well. No need to print pc/npc when we're dumping the whole cpu state. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
76a23ca099
commit
b884fc5eca
|
@ -21,7 +21,7 @@
|
||||||
#include "trace.h"
|
#include "trace.h"
|
||||||
#include "sysemu.h"
|
#include "sysemu.h"
|
||||||
|
|
||||||
//#define DEBUG_PCALL
|
#define DEBUG_PCALL
|
||||||
|
|
||||||
#ifdef DEBUG_PCALL
|
#ifdef DEBUG_PCALL
|
||||||
static const char * const excp_names[0x80] = {
|
static const char * const excp_names[0x80] = {
|
||||||
|
@ -78,10 +78,7 @@ void do_interrupt(CPUSPARCState *env)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
qemu_log("%6d: %s (v=%02x) pc=%08x npc=%08x SP=%08x\n",
|
qemu_log("%6d: %s (v=%02x)\n", count, name, intno);
|
||||||
count, name, intno,
|
|
||||||
env->pc,
|
|
||||||
env->npc, env->regwptr[6]);
|
|
||||||
log_cpu_state(env, 0);
|
log_cpu_state(env, 0);
|
||||||
#if 0
|
#if 0
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include "helper.h"
|
#include "helper.h"
|
||||||
#include "trace.h"
|
#include "trace.h"
|
||||||
|
|
||||||
//#define DEBUG_PCALL
|
#define DEBUG_PCALL
|
||||||
|
|
||||||
#ifdef DEBUG_PCALL
|
#ifdef DEBUG_PCALL
|
||||||
static const char * const excp_names[0x80] = {
|
static const char * const excp_names[0x80] = {
|
||||||
|
@ -84,11 +84,7 @@ void do_interrupt(CPUSPARCState *env)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
qemu_log("%6d: %s (v=%04x) pc=%016" PRIx64 " npc=%016" PRIx64
|
qemu_log("%6d: %s (v=%04x)\n", count, name, intno);
|
||||||
" SP=%016" PRIx64 "\n",
|
|
||||||
count, name, intno,
|
|
||||||
env->pc,
|
|
||||||
env->npc, env->regwptr[6]);
|
|
||||||
log_cpu_state(env, 0);
|
log_cpu_state(env, 0);
|
||||||
#if 0
|
#if 0
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue