Skip to content

Commit eba6814

Browse files
stweilvivier
authored andcommitted
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 <[email protected]> Reviewed-by: Michael Rolnik <[email protected]> Message-Id: <[email protected]> Signed-off-by: Laurent Vivier <[email protected]>
1 parent 631ba5a commit eba6814

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

target/avr/translate.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,9 @@ static const char reg_names[NUMBER_OF_CPU_REGISTERS][8] = {
7070
};
7171
#define REG(x) (cpu_r[x])
7272

73-
enum {
74-
DISAS_EXIT = DISAS_TARGET_0, /* We want return to the cpu main loop. */
75-
DISAS_LOOKUP = DISAS_TARGET_1, /* We have a variable condition exit. */
76-
DISAS_CHAIN = DISAS_TARGET_2, /* We have a single condition exit. */
77-
};
73+
#define DISAS_EXIT DISAS_TARGET_0 /* We want return to the cpu main loop. */
74+
#define DISAS_LOOKUP DISAS_TARGET_1 /* We have a variable condition exit. */
75+
#define DISAS_CHAIN DISAS_TARGET_2 /* We have a single condition exit. */
7876

7977
typedef struct DisasContext DisasContext;
8078

0 commit comments

Comments
 (0)