Message ID | 20221111182535.64844-17-alex.bennee@linaro.org |
---|---|
State | New |
Headers | show |
Series | use MemTxAttrs to avoid current_cpu in hw/ | expand |
On 11/12/22 04:25, Alex Bennée wrote: > We will need this shortly for machine specific transactions for the PC > IOAPIC. > > Signed-off-by: Alex Bennée<alex.bennee@linaro.org> > --- > include/exec/memattrs.h | 8 ++++++++ > 1 file changed, 8 insertions(+) Fold into patch 1? Anyway, Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
diff --git a/include/exec/memattrs.h b/include/exec/memattrs.h index 8359fc448b..b92f11aaa4 100644 --- a/include/exec/memattrs.h +++ b/include/exec/memattrs.h @@ -104,6 +104,14 @@ typedef struct MemTxAttrs { {.requester_type = MTRT_PCI, \ .requester_id = pci_requester_id(dev)}) +/* + * Helper for setting a machine specific sourced transaction. The + * details of how to decode the requester_id are machine specific. + */ +#define MEMTXATTRS_MACHINE(id) ((MemTxAttrs) \ + {.requester_type = MTRT_MACHINE, \ + .requester_id = id }) + /* New-style MMIO accessors can indicate that the transaction failed. * A zero (MEMTX_OK) response means success; anything else is a failure * of some kind. The memory subsystem will bitwise-OR together results
We will need this shortly for machine specific transactions for the PC IOAPIC. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> --- include/exec/memattrs.h | 8 ++++++++ 1 file changed, 8 insertions(+)