summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-06-21 09:16:55 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-06-21 09:16:55 -0700
commit19a1966079442ccbcda70c33bbcead7abb609985 (patch)
tree772ed176ba82a30a8166543c484d5363b29f0085 /src/arch
parente1eacc8d92498f29a43b427e314c95798d70a080 (diff)
downloadgem5-19a1966079442ccbcda70c33bbcead7abb609985.tar.xz
ARM: Get rid of unused postacc_code.
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/arm/isa/formats/mem.isa20
-rw-r--r--src/arch/arm/isa/formats/util.isa6
2 files changed, 3 insertions, 23 deletions
diff --git a/src/arch/arm/isa/formats/mem.isa b/src/arch/arm/isa/formats/mem.isa
index 0c736f947..df1d067dc 100644
--- a/src/arch/arm/isa/formats/mem.isa
+++ b/src/arch/arm/isa/formats/mem.isa
@@ -358,20 +358,12 @@ def template StoreMemAccExecute {{
EA = xc->getEA();
if (fault == NoFault) {
- %(postacc_code)s;
- }
-
- if (fault == NoFault) {
fault = xc->write((uint%(mem_acc_size)d_t&)Mem, EA,
memAccessFlags, NULL);
if (traceData) { traceData->setData(Mem); }
}
if (fault == NoFault) {
- %(postacc_code)s;
- }
-
- if (fault == NoFault) {
%(op_wb)s;
}
}
@@ -406,10 +398,6 @@ def template StoreExecute {{
}
if (fault == NoFault) {
- %(postacc_code)s;
- }
-
- if (fault == NoFault) {
%(op_wb)s;
}
}
@@ -466,10 +454,6 @@ def template StoreCompleteAcc {{
if (arm_predicate(xc->readMiscReg(ArmISA::CPSR), condCode))
{
if (fault == NoFault) {
- %(postacc_code)s;
- }
-
- if (fault == NoFault) {
%(op_wb)s;
}
}
@@ -491,10 +475,6 @@ def template StoreCondCompleteAcc {{
if (arm_predicate(xc->readMiscReg(ArmISA::CPSR), condCode))
{
if (fault == NoFault) {
- %(postacc_code)s;
- }
-
- if (fault == NoFault) {
%(op_wb)s;
}
}
diff --git a/src/arch/arm/isa/formats/util.isa b/src/arch/arm/isa/formats/util.isa
index ee6339c02..354f936d7 100644
--- a/src/arch/arm/isa/formats/util.isa
+++ b/src/arch/arm/isa/formats/util.isa
@@ -39,7 +39,7 @@ def ArmGenericCodeSubs(code):
return new_code
def LoadStoreBase(name, Name, ea_code, memacc_code, mem_flags, inst_flags,
- postacc_code = '', base_class = 'Memory',
+ base_class = 'Memory',
decode_template = BasicDecode, exec_template_base = ''):
# Make sure flags are in lists (convert to lists if not).
mem_flags = makeList(mem_flags)
@@ -58,13 +58,13 @@ def LoadStoreBase(name, Name, ea_code, memacc_code, mem_flags, inst_flags,
# they differ only in the set of code objects contained (which in
# turn affects the object's overall operand list).
iop = InstObjParams(name, Name, base_class,
- { 'ea_code':ea_code, 'memacc_code':memacc_code, 'postacc_code':postacc_code },
+ { 'ea_code':ea_code, 'memacc_code':memacc_code},
inst_flags)
ea_iop = InstObjParams(name, Name, base_class,
{ 'ea_code':ea_code },
inst_flags)
memacc_iop = InstObjParams(name, Name, base_class,
- { 'memacc_code':memacc_code, 'postacc_code':postacc_code },
+ { 'memacc_code':memacc_code},
inst_flags)
if mem_flags: