summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorBin Meng2021-01-19 03:52:03 +0100
committerAlistair Francis2021-03-04 15:43:29 +0100
commit6f03770daccaffc39a4ce61854ab126020374112 (patch)
tree20033e0a2e31b9f6193d703dfa4bb8209005bb67 /target
parentMerge remote-tracking branch 'remotes/dgilbert-gitlab/tags/pull-virtiofs-2021... (diff)
downloadqemu-6f03770daccaffc39a4ce61854ab126020374112.tar.gz
qemu-6f03770daccaffc39a4ce61854ab126020374112.tar.xz
qemu-6f03770daccaffc39a4ce61854ab126020374112.zip
target/riscv: Declare csr_ops[] with a known size
csr_ops[] is currently declared with an unknown size in cpu.h. Since the array size is known, let's do a complete declaration. Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 1611024723-14293-1-git-send-email-bmeng.cn@gmail.com Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'target')
-rw-r--r--target/riscv/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
index 02758ae0eb..419a21478c 100644
--- a/target/riscv/cpu.h
+++ b/target/riscv/cpu.h
@@ -487,7 +487,7 @@ enum {
};
/* CSR function table */
-extern riscv_csr_operations csr_ops[];
+extern riscv_csr_operations csr_ops[CSR_TABLE_SIZE];
void riscv_get_csr_ops(int csrno, riscv_csr_operations *ops);
void riscv_set_csr_ops(int csrno, riscv_csr_operations *ops);