diff options
Diffstat (limited to 'memory.h')
| -rw-r--r-- | memory.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/memory.h b/memory.h index 7fb36d16ec..53bf261792 100644 --- a/memory.h +++ b/memory.h @@ -71,6 +71,13 @@ struct MemoryRegionOps { * accesses throw machine checks. */ bool unaligned; + /* + * If present, and returns #false, the transaction is not accepted + * by the device (and results in machine dependent behaviour such + * as a machine check exception). + */ + bool (*accepts)(void *opaque, target_phys_addr_t addr, + unsigned size, bool is_write); } valid; /* Internal implementation constraints: */ struct { |