|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH v14 29/33] target-tilegx: Handle mtspr, mfspr |
Date: | Mon, 31 Aug 2015 22:48:52 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 |
On 08/30/2015 08:18 AM, Peter Maydell wrote:
+static const TileSPR *find_spr(unsigned spr) +{ + /* Allow the compiler to construct the binary search tree. */This feels a bit overly clever to me but if we only have three registers anyway it doesn't matter much.
I was just forward looking to system mode. There's a *lot* of sprs defined in spr_def_64.h.
+ D(SIM_CONTROL, + offsetof(CPUTLGState, spregs[TILEGX_SPR_CRITICAL_SEC]), 0, 0) + D(INTERRUPT_CRITICAL_SECTION, + offsetof(CPUTLGState, spregs[TILEGX_SPR_SIM_CONTROL]), 0, 0)Aren't the offsets on these two backwards ?
Fixed, thanks. r~
[Prev in Thread] | Current Thread | [Next in Thread] |