Skip to content

Commit

Permalink
Merge pull request #36 from visitorckw/fix-shift-too-many-bits
Browse files Browse the repository at this point in the history
Fix undefined behavior in RV_MARCHID definition
  • Loading branch information
jserv authored Jan 8, 2024
2 parents 90ddf1c + b790a33 commit 41b6f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ static inline sbi_ret_t handle_sbi_ecall_RST(vm_t *vm, int32_t fid)
}

#define RV_MVENDORID 0x12345678
#define RV_MARCHID ((1 << 31) | 1)
#define RV_MARCHID ((1ULL << 31) | 1)
#define RV_MIMPID 1

static inline sbi_ret_t handle_sbi_ecall_BASE(vm_t *vm, int32_t fid)
Expand Down

0 comments on commit 41b6f0f

Please sign in to comment.