diff mbox series

[2/3] target/hexagon: rename HEX_EVENT_TRAP0=>HEX_CAUSE_TRAP0

Message ID 20240816190620.1418311-2-bcain@quicinc.com
State New
Headers show
Series [1/3] target/hexagon: Rename HEX_EXCP_ => HEX_EVENT_ | expand

Commit Message

Brian Cain Aug. 16, 2024, 7:06 p.m. UTC
The value previously used for "HEX_EVENT_TRAP0" was the cause code
definition and not the event number.  So in this commit, we update
the name to reflect the cause code and add a new "HEX_EVENT_TRAP0"
with the correct event number.

Signed-off-by: Brian Cain <bcain@quicinc.com>
---
 target/hexagon/cpu_bits.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Taylor Simpson Aug. 16, 2024, 9:31 p.m. UTC | #1
> -----Original Message-----
> From: Brian Cain <bcain@quicinc.com>
> Sent: Friday, August 16, 2024 1:06 PM
> To: qemu-devel@nongnu.org
> Cc: bcain@quicinc.com; quic_mathbern@quicinc.com;
> sidneym@quicinc.com; quic_mliebel@quicinc.com;
> ltaylorsimpson@gmail.com
> Subject: [PATCH 2/3] target/hexagon: rename
> HEX_EVENT_TRAP0=>HEX_CAUSE_TRAP0
> 
> The value previously used for "HEX_EVENT_TRAP0" was the cause code
> definition and not the event number.  So in this commit, we update the
> name to reflect the cause code and add a new "HEX_EVENT_TRAP0"
> with the correct event number.
> 
> Signed-off-by: Brian Cain <bcain@quicinc.com>
> ---
>  target/hexagon/cpu_bits.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Taylor Simpson <ltaylorsimpson@gmail.com>
diff mbox series

Patch

diff --git a/target/hexagon/cpu_bits.h b/target/hexagon/cpu_bits.h
index 5a71af2469..eec456d8f9 100644
--- a/target/hexagon/cpu_bits.h
+++ b/target/hexagon/cpu_bits.h
@@ -23,6 +23,7 @@ 
 #define PCALIGN 4
 #define PCALIGN_MASK (PCALIGN - 1)
 
+#define HEX_EVENT_TRAP0           0x008
 #define HEX_EVENT_FETCH_NO_UPAGE  0x012
 #define HEX_EVENT_INVALID_PACKET  0x015
 #define HEX_EVENT_INVALID_OPCODE  0x015
@@ -30,7 +31,7 @@ 
 #define HEX_EVENT_PRIV_NO_UREAD   0x024
 #define HEX_EVENT_PRIV_NO_UWRITE  0x025
 
-#define HEX_EVENT_TRAP0           0x172
+#define HEX_CAUSE_TRAP0           0x172
 
 #define PACKET_WORDS_MAX         4