jump.py (10474:799c8ee4ecba) jump.py (10543:8fb2884b0a75)
1# Copyright (c) 2007 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 148 unchanged lines hidden (view full) ---

157def macroop JMP_FAR_REAL_I
158{
159 # Put the whole far pointer into a register.
160 limm t2, imm, dataSize=8
161 # Figure out the width of the offset.
162 limm t3, dsz, dataSize=8
163 slli t3, t3, 3, dataSize=8
164 # Get the selector into t1.
1# Copyright (c) 2007 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 148 unchanged lines hidden (view full) ---

157def macroop JMP_FAR_REAL_I
158{
159 # Put the whole far pointer into a register.
160 limm t2, imm, dataSize=8
161 # Figure out the width of the offset.
162 limm t3, dsz, dataSize=8
163 slli t3, t3, 3, dataSize=8
164 # Get the selector into t1.
165 sll t1, t2, t3, dataSize=8
165 srl t1, t2, t3, dataSize=8
166 mov t1, t0, t1, dataSize=2
167 # And get the offset into t2
168 mov t2, t0, t2
166 mov t1, t0, t1, dataSize=2
167 # And get the offset into t2
168 mov t2, t0, t2
169 slli t3, t3, 4, dataSize=8
169 slli t3, t1, 4, dataSize=8
170 wrsel cs, t1, dataSize=2
171 wrbase cs, t3
172 wrip t0, t2, dataSize=asz
173};
174'''
170 wrsel cs, t1, dataSize=2
171 wrbase cs, t3
172 wrip t0, t2, dataSize=asz
173};
174'''