projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92a9d94
)
sim: riscv: fix -Wimplicit-fallthrough warnings
author
Mike Frysinger
<vapier@gentoo.org>
Thu, 21 Dec 2023 06:35:41 +0000
(
01:35
-0500)
committer
Mike Frysinger
<vapier@gentoo.org>
Thu, 21 Dec 2023 06:59:23 +0000
(
01:59
-0500)
sim/riscv/sim-main.c
patch
|
blob
|
history
diff --git
a/sim/riscv/sim-main.c
b/sim/riscv/sim-main.c
index
afdfcf5
..
4d20534
100644
(file)
--- a/
sim/riscv/sim-main.c
+++ b/
sim/riscv/sim-main.c
@@
-126,6
+126,7
@@
store_csr (SIM_CPU *cpu, const char *name, int csr, unsigned_word *reg,
case CSR_INSTRETH:
case CSR_TIMEH:
RISCV_ASSERT_RV32 (cpu, "CSR: %s", name);
+ ATTRIBUTE_FALLTHROUGH;
/* All the rest are immutable. */
default: