Skip to content

Commit

Permalink
target/riscv: Define simpler privileged spec version numbering
Browse files Browse the repository at this point in the history
Currently, the privileged specification version are defined in
a complex manner for no benefit.

Simplify it by changing it to a simple enum based on.

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Message-Id: <20220303185440.512391-2-atishp@rivosinc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
  • Loading branch information
atishp04 authored and alistair23 committed Apr 22, 2022
1 parent 9972479 commit a46d410
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions target/riscv/cpu.h
Expand Up @@ -82,8 +82,11 @@ enum {
RISCV_FEATURE_AIA
};

#define PRIV_VERSION_1_10_0 0x00011000
#define PRIV_VERSION_1_11_0 0x00011100
/* Privileged specification version */
enum {
PRIV_VERSION_1_10_0 = 0,
PRIV_VERSION_1_11_0,
};

#define VEXT_VERSION_1_00_0 0x00010000

Expand Down

0 comments on commit a46d410

Please sign in to comment.