mirror of
https://github.com/yath/ghidra-xtensa.git
synced 2025-07-29 16:37:17 +02:00
Move context and register definition up.
“all context definitions must come before constructors”
This commit is contained in:
@ -51,6 +51,13 @@ define register offset=0x8200 size=1 [
|
|||||||
# Program counter.
|
# Program counter.
|
||||||
define register offset=0x8300 size=4 [ pc ];
|
define register offset=0x8300 size=4 [ pc ];
|
||||||
|
|
||||||
|
|
||||||
|
define register offset=0x8400 size=4 contextreg;
|
||||||
|
define context contextreg
|
||||||
|
phase=(0,0)
|
||||||
|
loopEnd=(1,1) noflow
|
||||||
|
;
|
||||||
|
|
||||||
# Regular 24-bit instruction.
|
# Regular 24-bit instruction.
|
||||||
define token insn(24)
|
define token insn(24)
|
||||||
# Named opcode/register fields.
|
# Named opcode/register fields.
|
||||||
@ -191,12 +198,6 @@ attach variables [ sr ] [
|
|||||||
# 0x...0 0x...4 0x...8 0x...c
|
# 0x...0 0x...4 0x...8 0x...c
|
||||||
];
|
];
|
||||||
|
|
||||||
define register offset=0x8400 size=4 contextreg;
|
|
||||||
define context contextreg
|
|
||||||
phase=(0,0)
|
|
||||||
loopEnd=(1,1) noflow
|
|
||||||
;
|
|
||||||
|
|
||||||
attach variables [ ar as at n_ar n_as n_at ] [
|
attach variables [ ar as at n_ar n_as n_at ] [
|
||||||
a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15
|
a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user