* Re: arm: gdb-stub is broken by FEAT_HAFDBS
2022-11-24 3:38 arm: gdb-stub is broken by FEAT_HAFDBS Changbin Du via
@ 2022-11-23 11:59 ` Peter Maydell
2022-11-24 6:35 ` liyang (CJ) via
0 siblings, 1 reply; 3+ messages in thread
From: Peter Maydell @ 2022-11-23 11:59 UTC (permalink / raw)
To: Changbin Du; +Cc: Richard Henderson, qemu-arm, qemu-devel, liyang, Hui Wang
On Wed, 23 Nov 2022 at 11:38, Changbin Du <changbin.du@huawei.com> wrote:
>
> Hello, Richard,
> We just noticed the gdb-stub is broken and probably caused by commit 4a3585568
> ("target/arm: Plumb debug into S1Translate").
>
> (gdb) target remote :1234
> Remote debugging using :1234
> 0x000000000e1716d0 in ?? ()
> => 0x000000000e1716d0: Cannot access memory at address 0xe1716d0
Hi -- is this fixed by commit 26ba00cf58e9f21b08f (just landed
upstream last night) ?
thanks
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
* arm: gdb-stub is broken by FEAT_HAFDBS
@ 2022-11-24 3:38 Changbin Du via
2022-11-23 11:59 ` Peter Maydell
0 siblings, 1 reply; 3+ messages in thread
From: Changbin Du via @ 2022-11-24 3:38 UTC (permalink / raw)
To: Richard Henderson, Peter Maydell; +Cc: qemu-arm, qemu-devel, liyang, Hui Wang
Hello, Richard,
We just noticed the gdb-stub is broken and probably caused by commit 4a3585568
("target/arm: Plumb debug into S1Translate").
(gdb) target remote :1234
Remote debugging using :1234
0x000000000e1716d0 in ?? ()
=> 0x000000000e1716d0: Cannot access memory at address 0xe1716d0
This issue can be workaround by below change.
--- a/target/arm/ptw.c
+++ b/target/arm/ptw.c
@@ -2879,7 +2879,7 @@ hwaddr arm_cpu_get_phys_page_attrs_debug(CPUState *cs, vaddr addr,
S1Translate ptw = {
.in_mmu_idx = arm_mmu_idx(env),
.in_secure = arm_is_secure(env),
- .in_debug = true,
+ .in_debug = false,
};
Could you take a look at this? Thank you!
--
Cheers,
Changbin Du
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: arm: gdb-stub is broken by FEAT_HAFDBS
2022-11-23 11:59 ` Peter Maydell
@ 2022-11-24 6:35 ` liyang (CJ) via
0 siblings, 0 replies; 3+ messages in thread
From: liyang (CJ) via @ 2022-11-24 6:35 UTC (permalink / raw)
To: Peter Maydell, Changbin Du
Cc: Richard Henderson, qemu-arm, qemu-devel, Hui Wang
On 2022/11/23 19:59, Peter Maydell wrote:
> On Wed, 23 Nov 2022 at 11:38, Changbin Du <changbin.du@huawei.com> wrote:
>>
>> Hello, Richard,
>> We just noticed the gdb-stub is broken and probably caused by commit 4a3585568
>> ("target/arm: Plumb debug into S1Translate").
>>
>> (gdb) target remote :1234
>> Remote debugging using :1234
>> 0x000000000e1716d0 in ?? ()
>> => 0x000000000e1716d0: Cannot access memory at address 0xe1716d0
>
> Hi -- is this fixed by commit 26ba00cf58e9f21b08f (just landed
> upstream last night) ?
>
I pulled the mainline which contains your commit 26ba00cf58e9f21b08f.
The problem is fixed.
Thank you very much.
> thanks
> -- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-11-24 14:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-24 3:38 arm: gdb-stub is broken by FEAT_HAFDBS Changbin Du via
2022-11-23 11:59 ` Peter Maydell
2022-11-24 6:35 ` liyang (CJ) via
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.