|
@@ -434,6 +434,11 @@ static bool fw_cfg_data_mem_valid(void *opaque, hwaddr addr,
|
|
return addr == 0;
|
|
return addr == 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static uint64_t fw_cfg_ctl_mem_read(void *opaque, hwaddr addr, unsigned size)
|
|
|
|
+{
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
static void fw_cfg_ctl_mem_write(void *opaque, hwaddr addr,
|
|
static void fw_cfg_ctl_mem_write(void *opaque, hwaddr addr,
|
|
uint64_t value, unsigned size)
|
|
uint64_t value, unsigned size)
|
|
{
|
|
{
|
|
@@ -468,6 +473,7 @@ static bool fw_cfg_comb_valid(void *opaque, hwaddr addr,
|
|
}
|
|
}
|
|
|
|
|
|
static const MemoryRegionOps fw_cfg_ctl_mem_ops = {
|
|
static const MemoryRegionOps fw_cfg_ctl_mem_ops = {
|
|
|
|
+ .read = fw_cfg_ctl_mem_read,
|
|
.write = fw_cfg_ctl_mem_write,
|
|
.write = fw_cfg_ctl_mem_write,
|
|
.endianness = DEVICE_BIG_ENDIAN,
|
|
.endianness = DEVICE_BIG_ENDIAN,
|
|
.valid.accepts = fw_cfg_ctl_mem_valid,
|
|
.valid.accepts = fw_cfg_ctl_mem_valid,
|