From cdc585e0e8ceb305de83053c488ba041367b7cd6 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 11 Nov 2010 02:03:58 -0800 Subject: SPARC: Clean up some historical style issues. --- src/arch/sparc/remote_gdb.cc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/arch/sparc/remote_gdb.cc') diff --git a/src/arch/sparc/remote_gdb.cc b/src/arch/sparc/remote_gdb.cc index aea40ea22..932123548 100644 --- a/src/arch/sparc/remote_gdb.cc +++ b/src/arch/sparc/remote_gdb.cc @@ -153,16 +153,16 @@ bool RemoteGDB::acc(Addr va, size_t len) { //@Todo In NetBSD, this function checks if all addresses - //from va to va + len have valid page map entries. Not - //sure how this will work for other OSes or in general. + // from va to va + len have valid page map entries. Not + // sure how this will work for other OSes or in general. #if FULL_SYSTEM if (va) return true; return false; #else TlbEntry entry; - //Check to make sure the first byte is mapped into the processes address - //space. + // Check to make sure the first byte is mapped into the processes address + // space. if (context->getProcessPtr()->pTable->lookup(va, entry)) return true; return false; @@ -187,7 +187,7 @@ RemoteGDB::getregs() regs = (uint32_t*)gdbregs.regs; regs[Reg32Pc] = htobe((uint32_t)pc.pc()); regs[Reg32Npc] = htobe((uint32_t)pc.npc()); - for(int x = RegG0; x <= RegI0 + 7; x++) + for (int x = RegG0; x <= RegI0 + 7; x++) regs[x] = htobe((uint32_t)context->readIntReg(x - RegG0)); regs[Reg32Y] = htobe((uint32_t)context->readIntReg(NumIntArchRegs + 1)); @@ -197,7 +197,7 @@ RemoteGDB::getregs() } else { gdbregs.regs[RegPc] = htobe(pc.pc()); gdbregs.regs[RegNpc] = htobe(pc.npc()); - for(int x = RegG0; x <= RegI0 + 7; x++) + for (int x = RegG0; x <= RegI0 + 7; x++) gdbregs.regs[x] = htobe(context->readIntReg(x - RegG0)); gdbregs.regs[RegFsr] = htobe(context->readMiscReg(MISCREG_FSR)); @@ -212,9 +212,9 @@ RemoteGDB::getregs() DPRINTF(GDBRead, "PC=%#x\n", gdbregs.regs[RegPc]); - //Floating point registers are left at 0 in netbsd - //All registers other than the pc, npc and int regs - //are ignored as well. + // Floating point registers are left at 0 in netbsd + // All registers other than the pc, npc and int regs + // are ignored as well. } /////////////////////////////////////////////////////////// @@ -233,9 +233,9 @@ RemoteGDB::setregs() pc.upc(0); pc.nupc(1); context->pcState(pc); - for(int x = RegG0; x <= RegI0 + 7; x++) + for (int x = RegG0; x <= RegI0 + 7; x++) context->setIntReg(x - RegG0, gdbregs.regs[x]); - //Only the integer registers, pc and npc are set in netbsd + // Only the integer registers, pc and npc are set in netbsd } void -- cgit v1.2.3