Commit 7a7b6632 authored by Philippe Mathieu-Daudé's avatar Philippe Mathieu-Daudé Committed by Laurent Vivier
Browse files

target/unicore32: Replace DPRINTF() by qemu_log_mask(GUEST_ERROR)



Replace disabled DPRINTF() by qemu_log_mask(GUEST_ERROR).

Signed-off-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Message-Id: <20200603123754.19059-3-f4bug@amsat.org>
Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
parent c421f818
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@
 */

#include "qemu/osdep.h"
#include "qemu/log.h"
#include "cpu.h"
#include "exec/exec-all.h"
#include "exec/helper-proto.h"
@@ -106,7 +107,8 @@ void helper_cp0_set(CPUUniCore32State *env, uint32_t val, uint32_t creg,
    }
    return;
unrecognized:
    DPRINTF("Wrong register (%d) or wrong operation (%d) in cp0_set!\n",
    qemu_log_mask(LOG_GUEST_ERROR,
                  "Wrong register (%d) or wrong operation (%d) in cp0_set!\n",
                  creg, cop);
}

@@ -153,7 +155,8 @@ uint32_t helper_cp0_get(CPUUniCore32State *env, uint32_t creg, uint32_t cop)
        }
        break;
    }
    DPRINTF("Wrong register (%d) or wrong operation (%d) in cp0_set!\n",
    qemu_log_mask(LOG_GUEST_ERROR,
                  "Wrong register (%d) or wrong operation (%d) in cp0_set!\n",
                  creg, cop);
    return 0;
}