1# -*- mode:python -*- 2 3# Copyright (c) 2006 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 55 unchanged lines hidden (view full) --- 64mem_comp_sig_template = ''' 65virtual Fault completeAcc(uint8_t *data, %s *xc, Trace::InstRecord *traceData) const { panic("Not defined!"); return NoFault; M5_DUMMY_RETURN }; 66''' 67 68# Generate a temporary CPU list, including the CheckerCPU if 69# it's enabled. This isn't used for anything else other than StaticInst 70# headers. 71temp_cpu_list = env['CPU_MODELS'][:] |
72temp_cpu_list.append('CheckerCPU') 73SimObject('CheckerCPU.py') |
74 |
75# Generate header. 76def gen_cpu_exec_signatures(target, source, env): 77 f = open(str(target[0]), 'w') 78 print >> f, ''' 79#ifndef __CPU_STATIC_INST_EXEC_SIGS_HH__ 80#define __CPU_STATIC_INST_EXEC_SIGS_HH__ 81''' 82 for cpu in temp_cpu_list: --- 8 unchanged lines hidden (view full) --- 91 return " [GENERATE] static_inst_exec_sigs.hh: " \ 92 + ', '.join(temp_cpu_list) 93 94# Add command to generate header to environment. 95env.Command('static_inst_exec_sigs.hh', (), 96 Action(gen_cpu_exec_signatures, gen_sigs_string, 97 varlist = temp_cpu_list)) 98 |
99env.Depends('static_inst_exec_sigs.hh', Value(env['CPU_MODELS'])) 100 |
101SimObject('BaseCPU.py') 102SimObject('FuncUnit.py') 103SimObject('ExeTracer.py') 104SimObject('IntelTrace.py') 105SimObject('IntrControl.py') 106SimObject('NativeTrace.py') 107 108Source('activity.cc') --- 12 unchanged lines hidden (view full) --- 121Source('simple_thread.cc') 122Source('thread_context.cc') 123Source('thread_state.cc') 124 125if env['TARGET_ISA'] == 'sparc': 126 SimObject('LegionTrace.py') 127 Source('legiontrace.cc') 128 |
129SimObject('DummyChecker.py') 130Source('checker/cpu.cc') 131Source('dummy_checker_builder.cc') 132DebugFlag('Checker') |
133 134DebugFlag('Activity') 135DebugFlag('Commit') 136DebugFlag('Context') 137DebugFlag('Decode') 138DebugFlag('DynInst') 139DebugFlag('ExecEnable') 140DebugFlag('ExecCPSeq') --- 32 unchanged lines hidden --- |