projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6670882
)
fw_cfg_mem: max access size and region size are the same for data register
author
Laszlo Ersek
<lersek@redhat.com>
Mon, 22 Dec 2014 12:11:37 +0000
(13:11 +0100)
committer
Peter Maydell
<peter.maydell@linaro.org>
Mon, 22 Dec 2014 23:39:16 +0000
(23:39 +0000)
Make it clear that the maximum access size to the MMIO data register
determines the full size of the memory region.
Currently the max access size is 1.
This patch doesn't change behavior.
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id:
1419250305
-31062-4-git-send-email-pbonzini@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/nvram/fw_cfg.c
patch
|
blob
|
history
diff --git
a/hw/nvram/fw_cfg.c
b/hw/nvram/fw_cfg.c
index c48bc6e650040f25d8720b449858e7354c0071df..8deb860fada31f6ddada1f67c70427efe8615529 100644
(file)
--- a/
hw/nvram/fw_cfg.c
+++ b/
hw/nvram/fw_cfg.c
@@
-31,7
+31,6
@@
#include "qemu/config-file.h"
#define FW_CFG_SIZE 2
-#define FW_CFG_DATA_SIZE 1
#define FW_CFG_NAME "fw_cfg"
#define FW_CFG_PATH "/machine/" FW_CFG_NAME
@@
-694,7
+693,8
@@
static void fw_cfg_mem_realize(DeviceState *dev, Error **errp)
sysbus_init_mmio(sbd, &s->ctl_iomem);
memory_region_init_io(&s->data_iomem, OBJECT(s), &fw_cfg_data_mem_ops,
- FW_CFG(s), "fwcfg.data", FW_CFG_DATA_SIZE);
+ FW_CFG(s), "fwcfg.data",
+ fw_cfg_data_mem_ops.valid.max_access_size);
sysbus_init_mmio(sbd, &s->data_iomem);
}