set_and_clear.py (5081:2ccce8600a9d) set_and_clear.py (5448:67c8b7badec1)
1# Copyright (c) 2007 The Hewlett-Packard Development Company
1# Copyright (c) 2007-2008 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# Redistribution and use of this software in source and binary forms,
5# with or without modification, are permitted provided that the
6# following conditions are met:
7#
8# The software must be used only for Non-Commercial Use which means any
9# use which is NOT directed to receiving any direct monetary

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

79 ori t1, t1, "CFBit"
80 wruflags t1, t0
81};
82
83def macroop CMC {
84 ruflags t1
85 wruflagsi t1, "CFBit"
86};
2# All rights reserved.
3#
4# Redistribution and use of this software in source and binary forms,
5# with or without modification, are permitted provided that the
6# following conditions are met:
7#
8# The software must be used only for Non-Commercial Use which means any
9# use which is NOT directed to receiving any direct monetary

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

79 ori t1, t1, "CFBit"
80 wruflags t1, t0
81};
82
83def macroop CMC {
84 ruflags t1
85 wruflagsi t1, "CFBit"
86};
87
88def macroop STI {
89 rflags t1
90 limm t2, "IFBit"
91 or t1, t1, t2
92 wrflags t1, t0
93};
94
95def macroop CLI {
96 rflags t1
97 limm t2, "~IFBit"
98 and t1, t1, t2
99 wrflags t1, t0
100};
87'''
101'''
88#let {{
89# class CLI(Inst):
90# "GenFault ${new UnimpInstFault}"
91# class STI(Inst):
92# "GenFault ${new UnimpInstFault}"
93#}};