romutil.py (6057:882f1b921de7) romutil.py (6062:2116d308076f)
1# Copyright (c) 2008 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

159 #
160 # Adjust rflags which is still in t10 from above
161 #
162
163 # Set IF to the lowest bit of the original gate type.
164 # The type field of the original gate starts at bit 40.
165
166 # Set the TF, NT, and RF bits. We'll flip them at the end.
1# Copyright (c) 2008 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

159 #
160 # Adjust rflags which is still in t10 from above
161 #
162
163 # Set IF to the lowest bit of the original gate type.
164 # The type field of the original gate starts at bit 40.
165
166 # Set the TF, NT, and RF bits. We'll flip them at the end.
167 limm t6, (1 << 8) | (1 << 14) | (1 << 16)
168 or t10, t10, t6
167 limm t6, (1 << 8) | (1 << 14) | (1 << 16), dataSize=8
168 or t10, t10, t6, dataSize=8
169 srli t5, t4, 40, dataSize=8
170 srli t7, t10, 9, dataSize=8
171 xor t5, t7, t5, dataSize=8
172 andi t5, t5, 1, dataSize=8
173 slli t5, t5, 9, dataSize=8
174 or t6, t5, t6, dataSize=8
175
176 # Put the results into rflags

--- 47 unchanged lines hidden ---
169 srli t5, t4, 40, dataSize=8
170 srli t7, t10, 9, dataSize=8
171 xor t5, t7, t5, dataSize=8
172 andi t5, t5, 1, dataSize=8
173 slli t5, t5, 9, dataSize=8
174 or t6, t5, t6, dataSize=8
175
176 # Put the results into rflags

--- 47 unchanged lines hidden ---