Skip to content

Commit

Permalink
fix(hgeie): fix macro generation logic for 'HGEIE_MASK' (#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anzooooo authored Jan 25, 2025
1 parent 95eca21 commit 011307b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/isa/riscv64/system/priv.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ static inline word_t* csr_decode(uint32_t addr) {
#define HIP_WMASK MIP_VSSIP
#define HIE_RMASK HSI_MASK
#define HIE_WMASK HSI_MASK
#define HGEIE_MASK ((1ULL << (1 + MUXDEF(CONFIG_GEILEN, CONFIG_GEILEN, 0))) - 2) // bit 0 is read-only zero
#define HGEIE_MASK ((1ULL << (1 + MUXDEF(CONFIG_RV_IMSIC, CONFIG_GEILEN, 0))) - 2) // bit 0 is read-only zero
#define HGEIP_MASK HGEIE_MASK
#define HIDELEG_MASK (VSI_MASK | MUXDEF(CONFIG_RV_SHLCOFIDELEG, MIP_LCOFIP, 0))
#define HEDELEG_MASK ((1 << EX_IAM) | \
Expand Down

0 comments on commit 011307b

Please sign in to comment.