Skip to content

Commit

Permalink
fixed 64bit write mucounteren csr error
Browse files Browse the repository at this point in the history
  • Loading branch information
bigmagic123 committed Aug 17, 2022
1 parent bc99e84 commit d988524
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions target/riscv/csr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1261,6 +1261,7 @@ static int write_mucounteren(CPURISCVState *env, int csrno, target_ulong val)
{
extern int use_icount;
extern int icount_shift_flag;
val = val & 0xffffffff;
if(first_run_flag == 0)
{
if(use_icount)
Expand Down

0 comments on commit d988524

Please sign in to comment.