This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] fix for aarch64 sim tbnz bug
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: Jim Wilson <jim dot wilson at linaro dot org>, gdb-patches at sourceware dot org
- Date: Fri, 02 Dec 2016 14:34:13 +0100
- Subject: Re: [PATCH] fix for aarch64 sim tbnz bug
- Authentication-results: sourceware.org; auth=none
- References: <CABXYE2W++FWtcyNq4FAroJ2+VNJOHWs7-sdHMBm=6kOwSkD5Ug@mail.gmail.com> <81f852ec-2ef8-9551-dd9e-de93909adef6@redhat.com>
On Dez 02 2016, Nick Clifton <nickc@redhat.com> wrote:
> Would:
>
> + if (aarch64_get_reg_u64 (cpu, rt, NO_SP) & (1UL << pos))
>
> work as well, or would this break on 32-bit hosts ?
+ if ((aarch64_get_reg_u64 (cpu, rt, NO_SP) >> pos) & 1)
would work everywhere.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."