Giacomo Travaglini has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/30936 )
Change subject: cpu: Add IsPseudo instruction flag
......................................................................
cpu: Add IsPseudo instruction flag
This could be used by in gem5 to recognize pseudo instructions.
As an example a tracer might choose to disasemble them as a
NOP.
Change-Id: Ib17a4d978f94c263778a0ee2914ad44a60665bd0
Signed-off-by: Giacomo Travaglini <[email protected]>
---
M src/cpu/StaticInstFlags.py
M src/cpu/static_inst.hh
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/src/cpu/StaticInstFlags.py b/src/cpu/StaticInstFlags.py
index f756ba1..4ebab19 100644
--- a/src/cpu/StaticInstFlags.py
+++ b/src/cpu/StaticInstFlags.py
@@ -1,3 +1,15 @@
+# Copyright (c) 2020 ARM Limited
+# All rights reserved.
+#
+# The license below extends only to copyright in the software and shall
+# not be construed as granting a license to any other intellectual
+# property including but not limited to intellectual property relating
+# to a hardware implementation of the functionality of the software
+# licensed hereunder. You may use the software subject to the license
+# terms below provided that you ensure that this notice is replicated
+# unmodified and in its entirety in all distributions of the software,
+# modified or unmodified, in source code or in binary form.
+#
# Copyright (c) 2003-2005 The Regents of The University of Michigan
# Copyright (c) 2013 Advanced Micro Devices, Inc.
# All rights reserved.
@@ -98,6 +110,7 @@
'IsSyscall', # Causes a system call to be emulated in
syscall
# emulation mode.
+ 'IsPseudo', # Is a m5 pseudo-op
# Flags for microcode
'IsMacroop', # Is a macroop containing microops
diff --git a/src/cpu/static_inst.hh b/src/cpu/static_inst.hh
index b523ef9..4dfa5c7 100644
--- a/src/cpu/static_inst.hh
+++ b/src/cpu/static_inst.hh
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 ARM Limited
+ * Copyright (c) 2017, 2020 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
@@ -195,6 +195,7 @@
bool isIprAccess() const { return flags[IsIprAccess]; }
bool isUnverifiable() const { return flags[IsUnverifiable]; }
bool isSyscall() const { return flags[IsSyscall]; }
+ bool isPseudo() const { return flags[IsPseudo]; }
bool isMacroop() const { return flags[IsMacroop]; }
bool isMicroop() const { return flags[IsMicroop]; }
bool isDelayedCommit() const { return flags[IsDelayedCommit]; }
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/30936
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ib17a4d978f94c263778a0ee2914ad44a60665bd0
Gerrit-Change-Number: 30936
Gerrit-PatchSet: 1
Gerrit-Owner: Giacomo Travaglini <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s