summaryrefslogtreecommitdiff
path: root/src/arch/arm/isa/formats/pseudo.isa
diff options
context:
space:
mode:
authorAndreas Sandberg <Andreas.Sandberg@ARM.com>2015-02-16 03:32:58 -0500
committerAndreas Sandberg <Andreas.Sandberg@ARM.com>2015-02-16 03:32:58 -0500
commit5bfa7e3d59138b0b440e5b2e67e8077c1d59c34b (patch)
treedafc0db90c2f5c0457472941227c301b6cbeccec /src/arch/arm/isa/formats/pseudo.isa
parent4eff4fa12eafbf6337fdf9a23668880ad55aad9c (diff)
downloadgem5-5bfa7e3d59138b0b440e5b2e67e8077c1d59c34b.tar.xz
arm: Merge ISA files with pseudo instructions
This changeset moves the pseudo instructions used to signal unknown instructions and unimplemented instructions to the same source files as the decoder fault.
Diffstat (limited to 'src/arch/arm/isa/formats/pseudo.isa')
-rw-r--r--src/arch/arm/isa/formats/pseudo.isa34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/arch/arm/isa/formats/pseudo.isa b/src/arch/arm/isa/formats/pseudo.isa
index a6a81b392..30c2320e1 100644
--- a/src/arch/arm/isa/formats/pseudo.isa
+++ b/src/arch/arm/isa/formats/pseudo.isa
@@ -12,6 +12,9 @@
// unmodified and in its entirety in all distributions of the software,
// modified or unmodified, in source code or in binary form.
//
+// Copyright (c) 2007-2008 The Florida State University
+// All rights reserved.
+//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met: redistributions of source code must retain the above copyright
@@ -36,9 +39,40 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Authors: Andreas Sandberg
+// Stephen Hines
+
+
+////////////////////////////////////////////////////////////////////
+//
+// Internal fault handling
+//
def format DecoderFault() {{
decode_block = '''
return new DecoderFaultInst(machInst);
'''
}};
+
+////////////////////////////////////////////////////////////////////
+//
+// Unknown instruction handling
+//
+
+def format Unknown() {{
+ decode_block = 'return new Unknown(machInst);\n'
+}};
+
+////////////////////////////////////////////////////////////////////
+//
+// Unimplemented instructions
+//
+
+def format FailUnimpl() {{
+ iop = InstObjParams(name, 'FailUnimplemented')
+ decode_block = BasicDecodeWithMnemonic.subst(iop)
+}};
+
+def format WarnUnimpl() {{
+ iop = InstObjParams(name, 'WarnUnimplemented')
+ decode_block = BasicDecodeWithMnemonic.subst(iop)
+}};