[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Schwarz, Konrad
Subject: target.xml
Date: Fri, 7 May 2021 12:02:14 +0000


GDB uses an XML description of a target's registers:
i.e., for RISC-V this comprises
general-purpose, floating-point, control & status,
and "virtual" registers, as described
in the GDB manual.  Normally, this target description
is provided by the GDB server (e.g., QEMU);
GDB should dynamically adjust the machine
registers it understands on the command line
(e.g., $pc, $ra, ...) according to the
target description.  It is also possible
to set the target description manually,
using the
    set tdesc filename .../my-target.xml

The XML target description used by default
between QEMU and GDB is outdated.
I've created a new target description
file that includes floating-point,
user, supervisor, hypervisor,
and virtual supervisor CSRs and
provides definitions for the
fields within the CSRs.

However, I get the error message

warning: Architecture rejected target-supplied description

after my set tdesc filename command.

Does anyone know how to debug this?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]