mirror of
https://github.com/PabloMK7/citra
synced 2024-11-15 05:08:23 +00:00
core: Fix invalid log formatting in ARM interpreter. (#7391)
This commit is contained in:
parent
265e8193b9
commit
d1e3dddf6a
2 changed files with 4 additions and 5 deletions
|
@ -101,7 +101,7 @@ void vfp_put_float(ARMul_State* state, s32 val, unsigned int reg) {
|
|||
|
||||
u64 vfp_get_double(ARMul_State* state, unsigned int reg) {
|
||||
u64 result = ((u64)state->ExtReg[reg * 2 + 1]) << 32 | state->ExtReg[reg * 2];
|
||||
LOG_TRACE(Core_ARM11, "VFP get double: s[{}-{}]=[{:016llx}]", reg * 2 + 1, reg * 2, result);
|
||||
LOG_TRACE(Core_ARM11, "VFP get double: s[{}-{}]=[{:016x}]", reg * 2 + 1, reg * 2, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ static struct vfp_double vfp_double_default_qnan = {
|
|||
};
|
||||
|
||||
static void vfp_double_dump(const char* str, struct vfp_double* d) {
|
||||
LOG_TRACE(Core_ARM11, "VFP: {}: sign={} exponent={} significand={:016llx}", str, d->sign != 0,
|
||||
LOG_TRACE(Core_ARM11, "VFP: {}: sign={} exponent={} significand={:016x}", str, d->sign != 0,
|
||||
d->exponent, d->significand);
|
||||
}
|
||||
|
||||
|
@ -166,7 +166,7 @@ u32 vfp_double_normaliseround(ARMul_State* state, int dd, struct vfp_double* vd,
|
|||
} else if ((rmode == FPSCR_ROUND_PLUSINF) ^ (vd->sign != 0))
|
||||
incr = (1ULL << (VFP_DOUBLE_LOW_BITS + 1)) - 1;
|
||||
|
||||
LOG_TRACE(Core_ARM11, "VFP: rounding increment = 0x{:08llx}", incr);
|
||||
LOG_TRACE(Core_ARM11, "VFP: rounding increment = 0x{:08x}", incr);
|
||||
|
||||
/*
|
||||
* Is our rounding going to overflow?
|
||||
|
@ -221,8 +221,7 @@ pack:
|
|||
vfp_double_dump("pack: final", vd);
|
||||
{
|
||||
s64 d = vfp_double_pack(vd);
|
||||
LOG_TRACE(Core_ARM11, "VFP: {}: d(d{})={:016llx} exceptions={:08x}", func, dd, d,
|
||||
exceptions);
|
||||
LOG_TRACE(Core_ARM11, "VFP: {}: d(d{})={:016x} exceptions={:08x}", func, dd, d, exceptions);
|
||||
vfp_put_double(state, d, dd);
|
||||
}
|
||||
return exceptions;
|
||||
|
|
Loading…
Reference in a new issue