Re: [RFC PATCH] gdb/gic: expose cpu_index via MxTxAttrs

2022-04-12 Thread Alex Bennée
Peter Maydell writes: > On Tue, 12 Apr 2022 at 11:45, Alex Bennée wrote: >> >> When accessing HW via the gdbstub we can't easily figure out what the >> cpu_index is. The canonical case is current_cpu but for some cases >> that will be NULL. For debug accesses we can overload requester_id and >

Re: [RFC PATCH] gdb/gic: expose cpu_index via MxTxAttrs

2022-04-12 Thread Peter Maydell
On Tue, 12 Apr 2022 at 11:45, Alex Bennée wrote: > > When accessing HW via the gdbstub we can't easily figure out what the > cpu_index is. The canonical case is current_cpu but for some cases > that will be NULL. For debug accesses we can overload requester_id and > make the GIC a bit smarter abou

[RFC PATCH] gdb/gic: expose cpu_index via MxTxAttrs

2022-04-12 Thread Alex Bennée
When accessing HW via the gdbstub we can't easily figure out what the cpu_index is. The canonical case is current_cpu but for some cases that will be NULL. For debug accesses we can overload requester_id and make the GIC a bit smarter about fishing that out. [AJB: very much a PoC hack for now but