aboutsummaryrefslogtreecommitdiff
path: root/sim/README-HACKING
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-04-25 18:11:35 -0400
committerMike Frysinger <vapier@gentoo.org>2021-04-26 22:39:55 -0400
commitbd0918c910b7c4ee056d9c3413f8c680dff11584 (patch)
treeaf087569015bdab3a78c4445c5224c02e7fc1463 /sim/README-HACKING
parent66d055c75479e0c51745fc3b40faec6df7a01620 (diff)
downloadfsf-binutils-gdb-bd0918c910b7c4ee056d9c3413f8c680dff11584.zip
fsf-binutils-gdb-bd0918c910b7c4ee056d9c3413f8c680dff11584.tar.gz
fsf-binutils-gdb-bd0918c910b7c4ee056d9c3413f8c680dff11584.tar.bz2
sim: nltvals: unify common syscall tables
Since libgloss provides a default syscall table for arches, use that to provide the default syscall table for ports. Only the exceptions need to be enumerated now with the common logic as the default.
Diffstat (limited to 'sim/README-HACKING')
-rw-r--r--sim/README-HACKING7
1 files changed, 4 insertions, 3 deletions
diff --git a/sim/README-HACKING b/sim/README-HACKING
index 7858058..bd0054f 100644
--- a/sim/README-HACKING
+++ b/sim/README-HACKING
@@ -180,7 +180,7 @@ got one to hand):
$ cd /tmp/$$
$ cvs checkout sim-no-testsuite libgloss-no-testsuite newlib-no-testsuite
-Configure things for an arbitrary simulator target (I've d10v for
+Configure things for an arbitrary simulator target (d10v is used here for
convenience):
$ mkdir /tmp/$$/build
@@ -192,9 +192,10 @@ In the sim/ directory rebuild the headers:
$ cd sim/
$ make nltvals
-To add a new target:
+If the target uses the common syscall table (libgloss/syscall.h), then you're
+all set! If the target has a custom syscall table, you need to declare it:
- devo/sim/common/gennltvals.sh
+ devo/sim/common/gennltvals.py
Add your new processor target (you'll need to grub
around to find where your syscall.h lives).