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

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

71 from ArmInterrupts import ArmInterrupts
72elif buildEnv['TARGET_ISA'] == 'power':
73 from PowerTLB import PowerTLB
74 from PowerInterrupts import PowerInterrupts
75
76class BaseCPU(MemObject):
77 type = 'BaseCPU'
78 abstract = True
79 cxx_header = "cpu/base.hh"
80
81 @classmethod
81 def export_method_cxx_predecls(cls, code):
82 code('#include "cpu/base.hh"')
83
84
85 @classmethod
82 def export_methods(cls, code):
83 code('''
84 void switchOut();
85 void takeOverFrom(BaseCPU *cpu);
86''')
87
88 def takeOverFrom(self, old_cpu):
89 self._ccObject.takeOverFrom(old_cpu._ccObject)

--- 156 unchanged lines hidden ---