|
| From: | Richard Henderson |
| Subject: | Re: [PATCH v2 29/30] accel/tcg/user-exec: Implement CPU-specific signal handler for loongarch64 hosts |
| Date: | Wed, 22 Sep 2021 09:51:17 -0700 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 9/21/21 1:19 PM, WANG Xuerui wrote:
+ case 0b00011111110: /* stle.w */
+ case 0b00011111111: /* stle.d */
+ is_write = 1;
+ break;
+ default:
+ /* test for am* instruction range */
+ if (0b00011000000 <= sel && sel <= 0b00011100011) {
+ is_write = 1;
+ }
Probably better to fold the range check into the switch with case 0b00011000000 ... 0b00011100011: /* am* insn range */ Otherwise, Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
| [Prev in Thread] | Current Thread | [Next in Thread] |