aboutsummaryrefslogtreecommitdiff
path: root/target/avr
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2021-07-06 20:09:36 +0200
committerLaurent Vivier <laurent@vivier.eu>2021-09-16 12:11:16 +0200
commiteba6814a0a85a6e307221af64bf6ad28befaf1f9 (patch)
tree9e9ce6698e61bb04c46ef1777b8f53df861b9251 /target/avr
parent631ba5a12861f3aeadda11f5a6875f13847d1453 (diff)
downloadqemu-eba6814a0a85a6e307221af64bf6ad28befaf1f9.zip
qemu-eba6814a0a85a6e307221af64bf6ad28befaf1f9.tar.gz
qemu-eba6814a0a85a6e307221af64bf6ad28befaf1f9.tar.bz2
target/avr: Fix compiler errors (-Werror=enum-conversion)
../target/avr/translate.c: In function ‘gen_jmp_ez’: ../target/avr/translate.c:1012:22: error: implicit conversion from ‘enum <anonymous>’ to ‘DisasJumpType’ [-Werror=enum-conversion] 1012 | ctx->base.is_jmp = DISAS_LOOKUP; | ^ Signed-off-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: Michael Rolnik <mrolnik@gmail.com> Message-Id: <20210706180936.249912-1-sw@weilnetz.de> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'target/avr')
-rw-r--r--target/avr/translate.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/target/avr/translate.c b/target/avr/translate.c
index 1111e08..438e7b1 100644
--- a/target/avr/translate.c
+++ b/target/avr/translate.c
@@ -70,11 +70,9 @@ static const char reg_names[NUMBER_OF_CPU_REGISTERS][8] = {
};
#define REG(x) (cpu_r[x])
-enum {
- DISAS_EXIT = DISAS_TARGET_0, /* We want return to the cpu main loop. */
- DISAS_LOOKUP = DISAS_TARGET_1, /* We have a variable condition exit. */
- DISAS_CHAIN = DISAS_TARGET_2, /* We have a single condition exit. */
-};
+#define DISAS_EXIT DISAS_TARGET_0 /* We want return to the cpu main loop. */
+#define DISAS_LOOKUP DISAS_TARGET_1 /* We have a variable condition exit. */
+#define DISAS_CHAIN DISAS_TARGET_2 /* We have a single condition exit. */
typedef struct DisasContext DisasContext;