diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 01:34:13 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 01:59:23 -0500 |
commit | 80200ef6b49d0c879de6435519aacda9d025347c (patch) | |
tree | bff2ac5bd34a79ed1c805b0398180ecc55187362 /sim/mcore | |
parent | 452bfb00b5f2f48faef0bdca704274da38272fcc (diff) | |
download | fsf-binutils-gdb-80200ef6b49d0c879de6435519aacda9d025347c.zip fsf-binutils-gdb-80200ef6b49d0c879de6435519aacda9d025347c.tar.gz fsf-binutils-gdb-80200ef6b49d0c879de6435519aacda9d025347c.tar.bz2 |
sim: mcore: fix Wimplicit-fallthrough warnings
Seems like these decodes were intended to fallthru.
Diffstat (limited to 'sim/mcore')
-rw-r--r-- | sim/mcore/interp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/mcore/interp.c b/sim/mcore/interp.c index b0c2cc2..d24af0d 100644 --- a/sim/mcore/interp.c +++ b/sim/mcore/interp.c @@ -1105,6 +1105,7 @@ step_once (SIM_DESC sd, SIM_CPU *cpu) fprintf (stderr, "func call: r2 = %x r3 = %x r4 = %x r5 = %x r6 = %x r7 = %x\n", gr[2], gr[3], gr[4], gr[5], gr[6], gr[7]); + ATTRIBUTE_FALLTHROUGH; case 0x70: /* jmpi */ pc = rlat ((pc + ((inst & 0xFF) << 2)) & 0xFFFFFFFC); memops++; @@ -1192,6 +1193,7 @@ step_once (SIM_DESC sd, SIM_CPU *cpu) case 0xF8: case 0xF9: case 0xFA: case 0xFB: case 0xFC: case 0xFD: case 0xFE: case 0xFF: /* bsr */ gr[15] = pc; + ATTRIBUTE_FALLTHROUGH; case 0xF0: case 0xF1: case 0xF2: case 0xF3: case 0xF4: case 0xF5: case 0xF6: case 0xF7: /* br */ { |