remote_gdb.cc (11793:ef606668d247) | remote_gdb.cc (12031:46116545e745) |
---|---|
1/* 2 * Copyright 2015 LabWare 3 * Copyright 2014 Google, Inc. 4 * Copyright (c) 2002-2005 The Regents of The University of Michigan 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 134 unchanged lines hidden (view full) --- 143#include "sim/full_system.hh" 144#include "sim/process.hh" 145#include "sim/system.hh" 146 147using namespace std; 148using namespace SparcISA; 149 150RemoteGDB::RemoteGDB(System *_system, ThreadContext *c) | 1/* 2 * Copyright 2015 LabWare 3 * Copyright 2014 Google, Inc. 4 * Copyright (c) 2002-2005 The Regents of The University of Michigan 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 134 unchanged lines hidden (view full) --- 143#include "sim/full_system.hh" 144#include "sim/process.hh" 145#include "sim/system.hh" 146 147using namespace std; 148using namespace SparcISA; 149 150RemoteGDB::RemoteGDB(System *_system, ThreadContext *c) |
151 : BaseRemoteGDB(_system, c) | 151 : BaseRemoteGDB(_system, c), regCache32(this), regCache64(this) |
152{} 153 154/////////////////////////////////////////////////////////// 155// RemoteGDB::acc 156// 157// Determine if the mapping at va..(va+len) is valid. 158// 159bool --- 83 unchanged lines hidden (view full) --- 243 // are ignored as well. 244} 245 246 247RemoteGDB::BaseGdbRegCache* 248RemoteGDB::gdbRegs() 249{ 250 PSTATE pstate = context->readMiscReg(MISCREG_PSTATE); | 152{} 153 154/////////////////////////////////////////////////////////// 155// RemoteGDB::acc 156// 157// Determine if the mapping at va..(va+len) is valid. 158// 159bool --- 83 unchanged lines hidden (view full) --- 243 // are ignored as well. 244} 245 246 247RemoteGDB::BaseGdbRegCache* 248RemoteGDB::gdbRegs() 249{ 250 PSTATE pstate = context->readMiscReg(MISCREG_PSTATE); |
251 if (pstate.am) 252 {DPRINTF(GDBRead, "Creating 32-bit GDB\n"); 253 return new SPARCGdbRegCache(this);} 254 else 255 {DPRINTF(GDBRead, "Creating 64-bit GDB\n"); 256 return new SPARC64GdbRegCache(this);} | 251 if (pstate.am) { 252 return ®Cache32; 253 } else { 254 return ®Cache64; 255 } |
257} | 256} |