From 6d8d6d15cdf5547740afbd41efe7c0f1d62079f3 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 6 Apr 2006 14:52:44 -0400 Subject: Fixed up the isa description. Also added some capability to the isa_parser in the InstObjParams constructor. arch/isa_parser.py: Expanded the capability of the InstObjParams constructor to allow adding in extra keys for use in templates. These are added as key, value tuples as optional arguements. arch/sparc/isa/base.isa: arch/sparc/isa/formats/mem.isa: arch/sparc/isa/formats/priv.isa: The genCompositeIop function is no longer needed, as this functionality is now in the InstObjParams constructor. arch/sparc/isa/decoder.isa: Fixed up alot of instructions, and fixed indentation. arch/sparc/isa/formats/integerop.isa: The genCompositeIop function is no longer needed, as this functionality is now in the InstObjParams constructor. Also changed the immediate values to be signed. base/traceflags.py: Added SPARC traceflag configs/test/hello_sparc: Recompiled without -mflat cpu/cpu_exec_context.cc: Used the regfile clear function rather than memsetting to 0. --HG-- extra : convert_revision : b9da6f264f3ebc4ce1815008dfff7f476b247ee9 --- cpu/cpu_exec_context.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpu/cpu_exec_context.cc') diff --git a/cpu/cpu_exec_context.cc b/cpu/cpu_exec_context.cc index a3e6cc432..3236bb6d3 100644 --- a/cpu/cpu_exec_context.cc +++ b/cpu/cpu_exec_context.cc @@ -62,7 +62,7 @@ CPUExecContext::CPUExecContext(BaseCPU *_cpu, int _thread_num, System *_sys, { proxy = new ProxyExecContext(this); - memset(®s, 0, sizeof(RegFile)); + regs.clear(); if (cpu->params->profile) { profile = new FunctionProfile(system->kernelSymtab); @@ -93,7 +93,7 @@ CPUExecContext::CPUExecContext(BaseCPU *_cpu, int _thread_num, mem_port->setPeer(port); port->setPeer(mem_port); - memset(®s, 0, sizeof(RegFile)); + regs.clear(); proxy = new ProxyExecContext(this); } -- cgit v1.2.3