diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2010-08-23 09:44:19 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2010-08-23 09:44:19 -0700 |
commit | 5a1dbe4d99e9aad0f5c9002707a323ef8d6dfb8a (patch) | |
tree | c320a60e68034355a52afaef171ade75f9914d7a /src/arch/x86/isa/macroop.isa | |
parent | b187e7c9cc025dbd5bc525de3ef9352219007f72 (diff) | |
download | gem5-5a1dbe4d99e9aad0f5c9002707a323ef8d6dfb8a.tar.xz |
X86: Consolidate extra microop flags into one parameter.
This single parameter replaces the collection of bools that set up various
flavors of microops. A flag parameter also allows other flags to be set like
the serialize before/after flags, etc., without having to change the
constructor.
Diffstat (limited to 'src/arch/x86/isa/macroop.isa')
-rw-r--r-- | src/arch/x86/isa/macroop.isa | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/arch/x86/isa/macroop.isa b/src/arch/x86/isa/macroop.isa index 2f277a830..d6571c7e6 100644 --- a/src/arch/x86/isa/macroop.isa +++ b/src/arch/x86/isa/macroop.isa @@ -185,11 +185,16 @@ let {{ allocMicroops = '' micropc = 0 for op in self.microops: - isLast = (micropc == numMicroops - 1) + flags = ["IsMicroop"] + if micropc == numMicroops - 1: + flags.append("IsLastMicroop") + else: + flags.append("IsDelayedCommit") + if micropc == 0: + flags.append("IsFirstMicroop") allocMicroops += \ "microops[%d] = %s;\n" % \ - (micropc, op.getAllocator(True, not isLast, - micropc == 0, isLast)) + (micropc, op.getAllocator(flags)) micropc += 1 if env.useStackSize: useStackSize = "true" |