-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since RV32E and RV64E are ratified, RV64E is no longer invalid. So, this commit adds RV64E support for various parts.
- Loading branch information
Showing
6 changed files
with
77 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro: | ||
Original: rv64e-xregs.xml */ | ||
|
||
#include "gdbsupport/tdesc.h" | ||
|
||
static int | ||
create_feature_riscv_rv64e_xregs (struct target_desc *result, long regnum) | ||
{ | ||
struct tdesc_feature *feature; | ||
|
||
feature = tdesc_create_feature (result, "org.gnu.gdb.riscv.cpu"); | ||
tdesc_create_reg (feature, "zero", regnum++, 1, NULL, 64, "int"); | ||
tdesc_create_reg (feature, "ra", regnum++, 1, NULL, 64, "code_ptr"); | ||
tdesc_create_reg (feature, "sp", regnum++, 1, NULL, 64, "data_ptr"); | ||
tdesc_create_reg (feature, "gp", regnum++, 1, NULL, 64, "data_ptr"); | ||
tdesc_create_reg (feature, "tp", regnum++, 1, NULL, 64, "data_ptr"); | ||
tdesc_create_reg (feature, "t0", regnum++, 1, NULL, 64, "int"); | ||
tdesc_create_reg (feature, "t1", regnum++, 1, NULL, 64, "int"); | ||
tdesc_create_reg (feature, "t2", regnum++, 1, NULL, 64, "int"); | ||
tdesc_create_reg (feature, "fp", regnum++, 1, NULL, 64, "data_ptr"); | ||
tdesc_create_reg (feature, "s1", regnum++, 1, NULL, 64, "int"); | ||
tdesc_create_reg (feature, "a0", regnum++, 1, NULL, 64, "int"); | ||
tdesc_create_reg (feature, "a1", regnum++, 1, NULL, 64, "int"); | ||
tdesc_create_reg (feature, "a2", regnum++, 1, NULL, 64, "int"); | ||
tdesc_create_reg (feature, "a3", regnum++, 1, NULL, 64, "int"); | ||
tdesc_create_reg (feature, "a4", regnum++, 1, NULL, 64, "int"); | ||
tdesc_create_reg (feature, "a5", regnum++, 1, NULL, 64, "int"); | ||
tdesc_create_reg (feature, "pc", regnum++, 1, NULL, 64, "code_ptr"); | ||
return regnum; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0"?> | ||
<!-- Copyright (C) 2018-2023 Free Software Foundation, Inc. | ||
Copying and distribution of this file, with or without modification, | ||
are permitted in any medium without royalty provided the copyright | ||
notice and this notice are preserved. --> | ||
|
||
<!-- Register numbers are hard-coded in order to maintain backward | ||
compatibility with older versions of tools that didn't use xml | ||
register descriptions. --> | ||
|
||
<!DOCTYPE feature SYSTEM "gdb-target.dtd"> | ||
<feature name="org.gnu.gdb.riscv.cpu"> | ||
<reg name="zero" bitsize="64" type="int" regnum="0"/> | ||
<reg name="ra" bitsize="64" type="code_ptr"/> | ||
<reg name="sp" bitsize="64" type="data_ptr"/> | ||
<reg name="gp" bitsize="64" type="data_ptr"/> | ||
<reg name="tp" bitsize="64" type="data_ptr"/> | ||
<reg name="t0" bitsize="64" type="int"/> | ||
<reg name="t1" bitsize="64" type="int"/> | ||
<reg name="t2" bitsize="64" type="int"/> | ||
<reg name="fp" bitsize="64" type="data_ptr"/> | ||
<reg name="s1" bitsize="64" type="int"/> | ||
<reg name="a0" bitsize="64" type="int"/> | ||
<reg name="a1" bitsize="64" type="int"/> | ||
<reg name="a2" bitsize="64" type="int"/> | ||
<reg name="a3" bitsize="64" type="int"/> | ||
<reg name="a4" bitsize="64" type="int"/> | ||
<reg name="a5" bitsize="64" type="int"/> | ||
<reg name="pc" bitsize="64" type="code_ptr"/> | ||
</feature> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters