BaseCPU.py (9433:34971d2e0019) BaseCPU.py (9446:644f2a2c9bfc)
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

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

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();
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

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

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();
99 void flushTLBs();
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")

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

--- 164 unchanged lines hidden ---