Skip to content

Commit

Permalink
Update CAUSE_EXCCODE_MASK constant and remove uMPS3-related defines
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Bassi committed Dec 17, 2024
1 parent 748f2d3 commit 87cc141
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/include/uriscv/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
#ifndef URISCV_CPU_H
#define URISCV_CPU_H

#define CAUSE_EXCCODE_MASK 0x0000007c
#define CAUSE_EXCCODE_BIT 2
#define CAUSE_GET_EXCCODE(x) (((x)&CAUSE_EXCCODE_MASK) >> CAUSE_EXCCODE_BIT)
#define CAUSE_EXCCODE_MASK 0x7FFFFFFF

/* Exception codes as described in RISCV manual */
#define EXC_IAM 0 /* instruction address misaligned */
Expand Down

0 comments on commit 87cc141

Please sign in to comment.