From: Gabe Black Date: Wed, 25 Feb 2009 18:19:14 +0000 (-0800) Subject: X86: Use the right portion of a register for stores. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f0428ef9fc7acc5b1315f6c87202c1ee13f0b8b;p=gem5.git X86: Use the right portion of a register for stores. --- diff --git a/src/arch/x86/isa/microops/ldstop.isa b/src/arch/x86/isa/microops/ldstop.isa index 097b0e311..a1aaddfe2 100644 --- a/src/arch/x86/isa/microops/ldstop.isa +++ b/src/arch/x86/isa/microops/ldstop.isa @@ -466,9 +466,9 @@ let {{ microopClasses[name] = StoreOp - defineMicroStoreOp('St', 'Mem = Data;') + defineMicroStoreOp('St', 'Mem = pick(Data, 2, dataSize);') defineMicroStoreOp('Stfp', 'Mem = FpData.uqw;') - defineMicroStoreOp('Stupd', 'Mem = Data;', + defineMicroStoreOp('Stupd', 'Mem = pick(Data, 2, dataSize);', 'Base = merge(Base, EA - SegBase, addressSize);', 'Base = merge(Base, pkt->req->getVaddr() - SegBase, addressSize);'); defineMicroStoreOp('Cda', 'Mem = 0;', mem_flags="Request::NO_ACCESS")