OSDN Git Service

target/riscv: csr: Rename HCOUNTEREN_CY and friends
authorBin Meng <bmeng.cn@gmail.com>
Wed, 15 Sep 2021 08:46:01 +0000 (16:46 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 21 Sep 2021 02:10:47 +0000 (12:10 +1000)
commitdb70794ea840b55256a49dcb85d836a33e7d9207
tree1589dafa1d601b2cd36e34ac4138b7fb69371b93
parentc6013547560c33068dca3368ca7cd74b13f1a780
target/riscv: csr: Rename HCOUNTEREN_CY and friends

The macro name HCOUNTEREN_CY suggests it is for CSR HCOUNTEREN, but
in fact it applies to M-mode and S-mode CSR too. Rename these macros
to have the COUNTEREN_ prefix.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20210915084601.24304-1-bmeng.cn@gmail.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu_bits.h
target/riscv/csr.c