bounds.py (7087:fb8d5786ff30) bounds.py (10474:799c8ee4ecba)
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

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

35#
36# Authors: Gabe Black
37
38microcode = '''
39def macroop BOUND_R_M {
40 ld t1, seg, sib, disp, dataSize="env.dataSize * 2"
41 srli t2, t1, "env.dataSize * 8"
42 sub t1, t1, reg, flags=(ECF,)
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

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

35#
36# Authors: Gabe Black
37
38microcode = '''
39def macroop BOUND_R_M {
40 ld t1, seg, sib, disp, dataSize="env.dataSize * 2"
41 srli t2, t1, "env.dataSize * 8"
42 sub t1, t1, reg, flags=(ECF,)
43 fault "new BoundRange", flags=(CECF,)
43 fault "std::make_shared<BoundRange>()", flags=(CECF,)
44 sub t2, reg, t2, flags=(ECF,)
44 sub t2, reg, t2, flags=(ECF,)
45 fault "new BoundRange", flags=(CECF,)
45 fault "std::make_shared<BoundRange>()", flags=(CECF,)
46};
47
48def macroop BOUND_R_P {
46};
47
48def macroop BOUND_R_P {
49 fault "new UnimpInstFault"
49 fault "std::make_shared<UnimpInstFault>()"
50};
51'''
50};
51'''