[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-riscv] [Qemu-devel] [PATCH 3/5 v2] RISC-V: Map gdb CSR reg num
From: |
Richard Henderson |
Subject: |
Re: [Qemu-riscv] [Qemu-devel] [PATCH 3/5 v2] RISC-V: Map gdb CSR reg numbers to hw reg numbers. |
Date: |
Sun, 30 Dec 2018 09:23:15 +1100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 |
On 12/29/18 9:09 AM, Jim Wilson wrote:
> +++ b/target/riscv/csr-map.h
> @@ -0,0 +1,248 @@
> +/*
> + * The GDB CSR xml files list them in documentation order, not numerical
> order,
> + * and are missing entries for unnamed CSRs. So we need to map the gdb
> numbers
> + * to the hardware numbers.
> + */
> +
> +int csr_register_map[] = {
static const?
Putting an initialized variable in a header file doesn't seem right. Is this
supposed to be a declaration that is shared between c files?
r~
- [Qemu-riscv] [PATCH 0/5 v2] RISC-V: Add gdb xml files and gdbstub support., Jim Wilson, 2018/12/28
- [Qemu-riscv] [PATCH 5/5 v2] RISC-V: Add hooks to use the gdb xml files., Jim Wilson, 2018/12/28
- [Qemu-riscv] [PATCH 4/5 v2] RISC-V: Add debug support for accessing CSRs., Jim Wilson, 2018/12/28
- [Qemu-riscv] [PATCH 3/5 v2] RISC-V: Map gdb CSR reg numbers to hw reg numbers., Jim Wilson, 2018/12/28
- Re: [Qemu-riscv] [Qemu-devel] [PATCH 3/5 v2] RISC-V: Map gdb CSR reg numbers to hw reg numbers.,
Richard Henderson <=
- [Qemu-riscv] [PATCH 2/5 v2] RISC-V: Add 64-bit gdb xml files., Jim Wilson, 2018/12/28
- [Qemu-riscv] [PATCH 1/5 v2] RISC-V: Add 32-bit gdb xml files., Jim Wilson, 2018/12/28