Skip to content

Commit

Permalink
target/avr: Fix compiler errors (-Werror=enum-conversion)
Browse files Browse the repository at this point in the history
../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]>
  • Loading branch information
stweil authored and vivier committed Sep 16, 2021
1 parent 631ba5a commit eba6814
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions target/avr/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit eba6814

Please sign in to comment.