Message ID | 1521665220-3869-18-git-send-email-mjc@sifive.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/target/riscv/op_helper.c b/target/riscv/op_helper.c index dd3e417..f79716a 100644 --- a/target/riscv/op_helper.c +++ b/target/riscv/op_helper.c @@ -240,7 +240,7 @@ void csr_write_helper(CPURISCVState *env, target_ulong val_to_write, csr_write_helper(env, next_mie, CSR_MIE); break; } - case CSR_SATP: /* CSR_SPTBR */ { + case CSR_SATP: /* CSR_SPTBR */ if (!riscv_feature(env, RISCV_FEATURE_MMU)) { break; } @@ -258,7 +258,6 @@ void csr_write_helper(CPURISCVState *env, target_ulong val_to_write, env->satp = val_to_write; } break; - } case CSR_SEPC: env->sepc = val_to_write; break;