Re: [PATCH v1 1/9] hw: encode accessing CPU index in MemTxAttrs

2022-09-26 Thread Richard Henderson
On 9/25/22 13:02, Alex Bennée wrote: I'm not keen on adding another field like this. Hmm I thought it was unavoidable from Edgar's comment: "CPU's can also have a Master-IDs (Requester IDs) which are unrelated to the Clusters CPU index. This is used for example in the Xilinx ZynqMP

Re: [PATCH v1 1/9] hw: encode accessing CPU index in MemTxAttrs

2022-09-25 Thread Alex Bennée
Richard Henderson writes: > On 9/22/22 14:58, Alex Bennée wrote: >> We currently have hacks across the hw/ to reference current_cpu to >> work out what the current accessing CPU is. This breaks in some cases >> including using gdbstub to access HW state. As we have MemTxAttrs to >> describe

Re: [PATCH v1 1/9] hw: encode accessing CPU index in MemTxAttrs

2022-09-25 Thread Richard Henderson
On 9/22/22 14:58, Alex Bennée wrote: We currently have hacks across the hw/ to reference current_cpu to work out what the current accessing CPU is. This breaks in some cases including using gdbstub to access HW state. As we have MemTxAttrs to describe details about the access lets extend it to

[PATCH v1 1/9] hw: encode accessing CPU index in MemTxAttrs

2022-09-22 Thread Alex Bennée
We currently have hacks across the hw/ to reference current_cpu to work out what the current accessing CPU is. This breaks in some cases including using gdbstub to access HW state. As we have MemTxAttrs to describe details about the access lets extend it to mention if this is a CPU access and