[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v3 11/11] tests: add plugin asserting correctness of disc
From: |
Julian Ganz |
Subject: |
Re: [RFC PATCH v3 11/11] tests: add plugin asserting correctness of discon event's to_pc |
Date: |
Thu, 05 Dec 2024 13:10:18 +0000 |
Hi Pierrick,
December 5, 2024 at 12:33 AM, "Pierrick Bouvier" wrote:
> On 12/2/24 11:41, Julian Ganz wrote:
>
> > +/*
> > + * Copyright (C) 2024, Julian Ganz <neither@nut.email>
> > + *
> > + * License: GNU GPL, version 2 or later.
> > + * See the COPYING file in the top-level directory.
> > + */
> >
> Would be nice to include a description of the plugin here.
Agreed. I'll include one next time.
> When booting an arm64 vm, I get this message:
> Trap target PC mismatch
> Expected: 23faf3a80
> Encountered: 23faf3a84
>
> From what I understand, it means that the next_pc we have is incorrect.
Yes, this is indeed incorrect, and also a perfect example why this test
plugin exists. There are likely other errors lurking in target specific
code. Did you happen to also log interrupts? Do you remember what image
you used?
Btw: this also illustrates another issue I have with from_pc: we can
test the behavior for to_pc, but doing this meaningfully for from_pc
via a plugin is next to impossible because the instruction it points to
is not observable via an exec callback. At least not in the general
case, even not if we only consider a single type of event.
Regards,
Julian Ganz
- Re: [RFC PATCH v3 05/11] target/alpha: call plugin trap callbacks, (continued)
- [RFC PATCH v3 02/11] plugins: add API for registering discontinuity callbacks, Julian Ganz, 2024/12/02
- [RFC PATCH v3 07/11] target/avr: call plugin trap callbacks, Julian Ganz, 2024/12/02
- [RFC PATCH v3 08/11] target/mips: call plugin trap callbacks, Julian Ganz, 2024/12/02
- [RFC PATCH v3 09/11] target/riscv: call plugin trap callbacks, Julian Ganz, 2024/12/02
- [RFC PATCH v3 10/11] target/sparc: call plugin trap callbacks, Julian Ganz, 2024/12/02
- [RFC PATCH v3 11/11] tests: add plugin asserting correctness of discon event's to_pc, Julian Ganz, 2024/12/02
- Re: [RFC PATCH v3 11/11] tests: add plugin asserting correctness of discon event's to_pc, Pierrick Bouvier, 2024/12/04
- Re: [RFC PATCH v3 11/11] tests: add plugin asserting correctness of discon event's to_pc,
Julian Ganz <=
- Re: [RFC PATCH v3 11/11] tests: add plugin asserting correctness of discon event's to_pc, Pierrick Bouvier, 2024/12/05
- Re: [RFC PATCH v3 11/11] tests: add plugin asserting correctness of discon event's to_pc, Julian Ganz, 2024/12/05
- Re: [RFC PATCH v3 11/11] tests: add plugin asserting correctness of discon event's to_pc, Pierrick Bouvier, 2024/12/05
- Re: [RFC PATCH v3 11/11] tests: add plugin asserting correctness of discon event's to_pc, Julian Ganz, 2024/12/06
- Re: [RFC PATCH v3 11/11] tests: add plugin asserting correctness of discon event's to_pc, Pierrick Bouvier, 2024/12/06
- Re: [RFC PATCH v3 11/11] tests: add plugin asserting correctness of discon event's to_pc, Richard Henderson, 2024/12/06
- Re: [RFC PATCH v3 11/11] tests: add plugin asserting correctness of discon event's to_pc, Pierrick Bouvier, 2024/12/06
- Re: [RFC PATCH v3 11/11] tests: add plugin asserting correctness of discon event's to_pc, Richard Henderson, 2024/12/06
- Re: [RFC PATCH v3 11/11] tests: add plugin asserting correctness of discon event's to_pc, Julian Ganz, 2024/12/07
- Re: [RFC PATCH v3 11/11] tests: add plugin asserting correctness of discon event's to_pc, Julian Ganz, 2024/12/07