From 4e3ff42762f8fd08e130b10e59525139f12c932d Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 1 Dec 2007 23:00:58 -0800 Subject: X86: Implement wrbase and wrlimit for loading pseudo descriptors. --HG-- extra : convert_revision : fe03c4aed95ef12773e80cdb3d9cff68a2b20f02 --- src/arch/x86/isa/microops/regop.isa | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/arch/x86/isa/microops') diff --git a/src/arch/x86/isa/microops/regop.isa b/src/arch/x86/isa/microops/regop.isa index 4ac3a9d98..67e6fa1e9 100644 --- a/src/arch/x86/isa/microops/regop.isa +++ b/src/arch/x86/isa/microops/regop.isa @@ -936,4 +936,20 @@ let {{ ControlDest = newVal; } ''' + + class Wrbase(RegOp): + def __init__(self, dest, src1, flags=None, dataSize="env.dataSize"): + super(Wrbase, self).__init__(dest, \ + src1, "NUM_INTREGS", flags, dataSize) + code = ''' + SegBaseDest = psrc1; + ''' + + class Wrlimit(RegOp): + def __init__(self, dest, src1, flags=None, dataSize="env.dataSize"): + super(Wrlimit, self).__init__(dest, \ + src1, "NUM_INTREGS", flags, dataSize) + code = ''' + SegLimitDest = psrc1; + ''' }}; -- cgit v1.2.3