Skip to content
This repository was archived by the owner on Apr 13, 2019. It is now read-only.

Commit d621573

Browse files
author
Michael Clark
committed
target/riscv: rename RISCV_FEATURE_MISA
Renamed RISCV_FEATURE_MISA_RW to RISCV_FEATURE_MISA Signed-off-by: Michael Clark <[email protected]>
1 parent 077d5e6 commit d621573

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

target/riscv/cpu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
enum {
8888
RISCV_FEATURE_MMU,
8989
RISCV_FEATURE_PMP,
90-
RISCV_FEATURE_MISA_RW
90+
RISCV_FEATURE_MISA
9191
};
9292

9393
#define USER_VERSION_2_02_0 0x00020200

target/riscv/csr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static int read_misa(CPURISCVState *env, int csrno, target_ulong *val)
343343

344344
static int write_misa(CPURISCVState *env, int csrno, target_ulong val)
345345
{
346-
if (!riscv_feature(env, RISCV_FEATURE_MISA_RW)) {
346+
if (!riscv_feature(env, RISCV_FEATURE_MISA)) {
347347
/* drop write to misa */
348348
return 0;
349349
}

0 commit comments

Comments
 (0)