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:
58d3885
)
sim: arm: mark local read-only arrays as static const
author
Mike Frysinger
<vapier@gentoo.org>
Fri, 22 Dec 2023 01:06:10 +0000
(20:06 -0500)
committer
Mike Frysinger
<vapier@gentoo.org>
Mon, 1 Jan 2024 15:53:15 +0000
(10:53 -0500)
Move it into read-only data sections to avoid constructing them on the
stack at runtime.
sim/arm/thumbemu.c
patch
|
blob
|
history
diff --git
a/sim/arm/thumbemu.c
b/sim/arm/thumbemu.c
index
58a9c85
..
a26a404
100644
(file)
--- a/
sim/arm/thumbemu.c
+++ b/
sim/arm/thumbemu.c
@@
-2135,7
+2135,7
@@
ARMul_ThumbDecode (ARMul_State * state,
ARMword opcode;
enum { t_norm, t_shift, t_neg, t_mul } otype;
};
- struct insn_format subset[16] =
+ st
atic const st
ruct insn_format subset[16] =
{
{ 0xE0100000, t_norm}, /* ANDS Rd,Rd,Rs */
{ 0xE0300000, t_norm}, /* EORS Rd,Rd,Rs */
@@
-2158,7
+2158,7
@@
ARMul_ThumbDecode (ARMul_State * state,
if (in_IT_block ())
{
- struct insn_format it_subset[16] =
+ st
atic const st
ruct insn_format it_subset[16] =
{
{ 0xE0000000, t_norm}, /* AND Rd,Rd,Rs */
{ 0xE0200000, t_norm}, /* EOR Rd,Rd,Rs */