BaseCPU.py (9384:877293183bdf) BaseCPU.py (9430:a113f27b68bd)
1# Copyright (c) 2012 ARM Limited
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

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

90 abstract = True
91 cxx_header = "cpu/base.hh"
92
93 @classmethod
94 def export_methods(cls, code):
95 code('''
96 void switchOut();
97 void takeOverFrom(BaseCPU *cpu);
1# Copyright (c) 2012 ARM Limited
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

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

90 abstract = True
91 cxx_header = "cpu/base.hh"
92
93 @classmethod
94 def export_methods(cls, code):
95 code('''
96 void switchOut();
97 void takeOverFrom(BaseCPU *cpu);
98 bool switchedOut();
98''')
99
100 def takeOverFrom(self, old_cpu):
101 self._ccObject.takeOverFrom(old_cpu._ccObject)
102
103
104 system = Param.System(Parent.any, "system object")
105 cpu_id = Param.Int(-1, "CPU identifier")

--- 163 unchanged lines hidden ---
99''')
100
101 def takeOverFrom(self, old_cpu):
102 self._ccObject.takeOverFrom(old_cpu._ccObject)
103
104
105 system = Param.System(Parent.any, "system object")
106 cpu_id = Param.Int(-1, "CPU identifier")

--- 163 unchanged lines hidden ---