mirror of https://github.com/xemu-project/xemu.git
hw: debugexit: add read callback
Signed-off-by: Li Qiang <liq3ea@gmail.com> Message-Id: <20180912160118.21158-3-liq3ea@163.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
2247936a04
commit
af71743ad6
|
@ -23,6 +23,11 @@ typedef struct ISADebugExitState {
|
||||||
MemoryRegion io;
|
MemoryRegion io;
|
||||||
} ISADebugExitState;
|
} ISADebugExitState;
|
||||||
|
|
||||||
|
static uint64_t debug_exit_read(void *opaque, hwaddr addr, unsigned size)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static void debug_exit_write(void *opaque, hwaddr addr, uint64_t val,
|
static void debug_exit_write(void *opaque, hwaddr addr, uint64_t val,
|
||||||
unsigned width)
|
unsigned width)
|
||||||
{
|
{
|
||||||
|
@ -30,6 +35,7 @@ static void debug_exit_write(void *opaque, hwaddr addr, uint64_t val,
|
||||||
}
|
}
|
||||||
|
|
||||||
static const MemoryRegionOps debug_exit_ops = {
|
static const MemoryRegionOps debug_exit_ops = {
|
||||||
|
.read = debug_exit_read,
|
||||||
.write = debug_exit_write,
|
.write = debug_exit_write,
|
||||||
.valid.min_access_size = 1,
|
.valid.min_access_size = 1,
|
||||||
.valid.max_access_size = 4,
|
.valid.max_access_size = 4,
|
||||||
|
|
Loading…
Reference in New Issue