Integrated: JDK-8288824: [arm32] Display isetstate in register output

Thomas Stuefe stuefe at openjdk.org
Wed Jul 6 13:20:48 UTC 2022


On Tue, 21 Jun 2022 08:25:52 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> When analyzing [JDK-8288719](https://bugs.openjdk.org/browse/JDK-8288719), to know the current isetstate was useful. It would be nice if that were printed clearly in the register output to save some mental cycles parsing CPSR.
> 
> Looks like this:
> 
> Registers:
>   r0  = 0x00000000
>   r1  = 0xbe9e7fb8
>   r2  = 0x00000000
>   r3  = 0xb6f860ac
>   r4  = 0xbe9e7fb8
>   r5  = 0xb6f864e0
>   r6  = 0xbe9e8060
>   r7  = 0xbe9e7fb0
>   r8  = 0xb6da8798
>   r9  = 0x00000000
>   r10 = 0x00000000
>   fp  = 0x00000001
>   r12 = 0xb6da87ec
>   sp  = 0xbe9e7fb0
>   lr  = 0xb6bc7dfb
>   pc  = 0xb6bc7dfa
>   cpsr = 0x800e0030
> isetstate: Thumb
> 
> Registers:
>   r0  = 0xb6be3664
>   r1  = 0xbe947c70
>   r2  = 0x00000058
>   r3  = 0xb6f3e000
>   r4  = 0xbe947c70
>   r5  = 0xb6f3f510
>   r6  = 0xb6c95bdc
>   r7  = 0xbe947d18
>   r8  = 0xbe947d98
>   r9  = 0x00000000
>   r10 = 0x00000000
>   fp  = 0xbe947d14
>   r12 = 0xb6c95f84
>   sp  = 0xbe947c68
>   lr  = 0xb6e97218
>   pc  = 0xb6793f3c
>   cpsr = 0x60000010
> isetstate: ARM 
> 
> 
> I refrained from parsing more information from the CPSR because I did not want to blow up the patch. ISETSTATE proved to be useful. More information can be added if needed.

This pull request has now been integrated.

Changeset: 75c0a5b8
Author:    Thomas Stuefe <stuefe at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/75c0a5b828de5a2c1baa7226e43d23db62aa8375
Stats:     14 lines in 1 file changed: 13 ins; 0 del; 1 mod

8288824: [arm32] Display isetstate in register output

Reviewed-by: dsamersoff, snazarki

-------------

PR: https://git.openjdk.org/jdk/pull/9223


More information about the hotspot-runtime-dev mailing list