diff options
author | Joaquin de Andres <me@xcancerberox.com.ar> | 2020-04-02 18:28:39 +0200 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2020-05-05 13:37:51 -0700 |
commit | f08085f49fb66a5cdc86653bd896d0e728bcee50 (patch) | |
tree | 02899d2241a488a358fb6b010faeef81ce6a90e5 /include | |
parent | f19d118bed77bb95681b07f4e76dbb700c16918d (diff) | |
download | qemu-f08085f49fb66a5cdc86653bd896d0e728bcee50.zip qemu-f08085f49fb66a5cdc86653bd896d0e728bcee50.tar.gz qemu-f08085f49fb66a5cdc86653bd896d0e728bcee50.tar.bz2 |
hw/core/register: Add register_init_block8 helper.
There was no support for 8 bits block registers. Changed
register_init_block32 to be generic and static, adding register
size in bits as parameter. Created one helper for each size.
Signed-off-by: Joaquin de Andres <me@xcancerberox.com.ar>
Message-Id: <20200402162839.76636-1-me@xcancerberox.com.ar>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/register.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/hw/register.h b/include/hw/register.h index 5796584..5d2c565 100644 --- a/include/hw/register.h +++ b/include/hw/register.h @@ -185,6 +185,14 @@ uint64_t register_read_memory(void *opaque, hwaddr addr, unsigned size); * memory region (r_array->mem) the caller should add to a container. */ +RegisterInfoArray *register_init_block8(DeviceState *owner, + const RegisterAccessInfo *rae, + int num, RegisterInfo *ri, + uint8_t *data, + const MemoryRegionOps *ops, + bool debug_enabled, + uint64_t memory_size); + RegisterInfoArray *register_init_block32(DeviceState *owner, const RegisterAccessInfo *rae, int num, RegisterInfo *ri, |