tseg test
PATCH 1/1 tseg test
Put some unique content into tseg area
when locked down for easy testing.
--- hw/pci-host/q35.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
hw/pci-host/q35.c +4 -3
@@ -200,7 +200,8 @@ static const TypeInfo q35_host_info = {static uint64_t tseg_blackhole_read (void *ptr,hwaddr reg,unsigned size) { -return 0xffffffff ; +static const char msg[] ="No access to tseg for you. " ; +return msg[reg%sizeof (msg)]; } static void tseg_blackhole_write(void *opaque, hwaddr addr, uint64_t val,
@@ -215,8 +216,8 @@ static const MemoryRegionOps tseg_blackhole_ops = { .endianness = DEVICE_NATIVE_ENDIAN, .valid.min_access_size = 1, .valid.max_access_size = 4, - .impl.min_access_size = 4, - .impl.max_access_size = 4, + .impl.min_access_size = 1, + .impl.max_access_size = 1, .endianness = DEVICE_LITTLE_ENDIAN, };
Signature · 1 line
1.8.3.1