mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
hw/char: riscv_htif: Drop useless assignment of memory region
struct HTIFState has 3 members for address space and memory region, and are initialized during htif_mm_init(). But they are actually useless. Drop them. Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20221229091828.1945072-4-bmeng@tinylab.org> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
bc9c3b1862
commit
dc68824641
3 changed files with 6 additions and 13 deletions
|
@ -34,9 +34,6 @@ typedef struct HTIFState {
|
|||
hwaddr tohost_offset;
|
||||
hwaddr fromhost_offset;
|
||||
MemoryRegion mmio;
|
||||
MemoryRegion *address_space;
|
||||
MemoryRegion *main_mem;
|
||||
void *main_mem_ram_ptr;
|
||||
|
||||
CPURISCVState *env;
|
||||
CharBackend chr;
|
||||
|
@ -54,7 +51,7 @@ void htif_symbol_callback(const char *st_name, int st_info, uint64_t st_value,
|
|||
bool htif_uses_elf_symbols(void);
|
||||
|
||||
/* legacy pre qom */
|
||||
HTIFState *htif_mm_init(MemoryRegion *address_space, MemoryRegion *main_mem,
|
||||
CPURISCVState *env, Chardev *chr, uint64_t nonelf_base);
|
||||
HTIFState *htif_mm_init(MemoryRegion *address_space, CPURISCVState *env,
|
||||
Chardev *chr, uint64_t nonelf_base);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue