[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 17/17] hw/mips: Convert Malta "ifdef 0"-ed code to comment
From: |
Peter Maydell |
Subject: |
Re: [PATCH v2 17/17] hw/mips: Convert Malta "ifdef 0"-ed code to comments |
Date: |
Fri, 15 May 2020 12:12:47 +0100 |
On Fri, 15 May 2020 at 12:07, Aleksandar Markovic
<address@hidden> wrote:
> I understood your points. They make sense to me. In hindsight, in
> general, we shouldn't try just to silence checkpatch warnings (or, for
> that matter, compiler warnings as well), but try to resolve the root
> cause, the underlying issue, of the warning. In this case, creating
> tracepoints seems to be the right thing to do.
For this sort of "default case, guest accessed a bad register offset"
case, what I usually do is something like
qemu_log_mask(LOG_GUEST_ERROR, "malta_fpga_write: Bad register offset 0x"
TARGET_FMT_lx "\n", addr);
That's a simpler change than adding tracepoints and matches how
we report this kind of guest-did-the-wrong-thing behaviour elsewhere.
thanks
-- PMM
- [PATCH v2 09/17] target/mips: fpu: Demacro NMSUB.<D|S|PS>, (continued)
- [PATCH v2 09/17] target/mips: fpu: Demacro NMSUB.<D|S|PS>, Aleksandar Markovic, 2020/05/14
- [PATCH v2 06/17] target/mips: fpu: Demacro MADD.<D|S|PS>, Aleksandar Markovic, 2020/05/14
- [PATCH v2 10/17] target/mips: fpu: Remove now unused UNFUSED_FMA and FLOAT_FMA macros, Aleksandar Markovic, 2020/05/14
- [PATCH v2 15/17] target/mips: fpu: Name better paired-single variables, Aleksandar Markovic, 2020/05/14
- [PATCH v2 11/17] target/mips: fpu: Demacro CLASS.<D|S>, Aleksandar Markovic, 2020/05/14
- [PATCH v2 13/17] target/mips: fpu: Demacro RINT.<D|S>, Aleksandar Markovic, 2020/05/14
- [PATCH v2 16/17] target/mips: fpu: Refactor conversion from ieee to mips exception flags, Aleksandar Markovic, 2020/05/14
- [PATCH v2 17/17] hw/mips: Convert Malta "ifdef 0"-ed code to comments, Aleksandar Markovic, 2020/05/14
[PATCH v2 12/17] target/mips: fpu: Remove now unused FLOAT_CLASS macro, Aleksandar Markovic, 2020/05/14
[PATCH v2 08/17] target/mips: fpu: Demacro NMADD.<D|S|PS>, Aleksandar Markovic, 2020/05/14
[PATCH v2 14/17] target/mips: fpu: Remove now unused FLOAT_RINT macro, Aleksandar Markovic, 2020/05/14