summaryrefslogtreecommitdiff
path: root/utils/libmach/setmach.c
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2010-05-03 15:47:59 +0100
committerforsyth <forsyth@vitanuova.com>2010-05-03 15:47:59 +0100
commit773d7fd206e9623edfb12cd182dc5a115ec86950 (patch)
tree9f1953e19a531cca9d2f0be969f902eddda1dca1 /utils/libmach/setmach.c
parentf8af978a60a0a00813e7a57f93d9a5ba4df44069 (diff)
20100503-1547
Diffstat (limited to 'utils/libmach/setmach.c')
-rw-r--r--utils/libmach/setmach.c23
1 files changed, 18 insertions, 5 deletions
diff --git a/utils/libmach/setmach.c b/utils/libmach/setmach.c
index cdac45f6..4332dc9d 100644
--- a/utils/libmach/setmach.c
+++ b/utils/libmach/setmach.c
@@ -15,9 +15,10 @@ struct machtab
Machdata *machdata; /* machine functions */
};
-extern Mach mmips, msparc, m68020, mi386, marm, mmips2be, mmips2le, mpower;
+extern Mach mmips, msparc, m68020, mi386, mamd64,
+ marm, mmips2be, mmips2le, mpower, mpower64, malpha, msparc64;
extern Machdata mipsmach, sparcmach, m68020mach, i386mach,
- armmach, mipsmach2be, mipsmach2le, powermach;
+ armmach, mipsmach2le, powermach, alphamach, sparc64mach;
/*
* machine selection table. machines with native disassemblers should
@@ -55,7 +56,7 @@ Machtab machines[] =
FMIPSB,
AMIPS,
&mmips2be,
- &mipsmach2be, },
+ &mipsmach, }, /* shares debuggers with native mips */
{ "mipsco", /*native mips - must follow plan 9*/
FMIPS,
FMIPSB,
@@ -86,18 +87,30 @@ Machtab machines[] =
AI8086,
&mi386,
&i386mach, },
+ { "amd64", /*amd64*/
+ FAMD64,
+ FAMD64B,
+ AAMD64,
+ &mamd64,
+ &i386mach, },
{ "arm", /*ARM*/
FARM,
- FNONE,
+ FARMB,
AARM,
&marm,
&armmach, },
{ "power", /*PowerPC*/
FPOWER,
- FNONE,
+ FPOWERB,
APOWER,
&mpower,
&powermach, },
+ { "power64", /*PowerPC*/
+ FPOWER64,
+ FPOWER64B,
+ APOWER64,
+ &mpower64,
+ &powermach, },
{ 0 }, /*the terminator*/
};