remote_gdb.hh (8931:7a1dfb191e3f) remote_gdb.hh (10037:5cac77888310)
1/*
1/*
2 * Copyright (c) 2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated
11 * unmodified and in its entirety in all distributions of the software,
12 * modified or unmodified, in source code or in binary form.
13 *
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007-2008 The Florida State University
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
9 * notice, this list of conditions and the following disclaimer;

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

35
36#include "base/remote_gdb.hh"
37
38class System;
39class ThreadContext;
40
41namespace ArmISA
42{
14 * Copyright (c) 2002-2005 The Regents of The University of Michigan
15 * Copyright (c) 2007-2008 The Florida State University
16 * All rights reserved.
17 *
18 * Redistribution and use in source and binary forms, with or without
19 * modification, are permitted provided that the following conditions are
20 * met: redistributions of source code must retain the above copyright
21 * notice, this list of conditions and the following disclaimer;

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

47
48#include "base/remote_gdb.hh"
49
50class System;
51class ThreadContext;
52
53namespace ArmISA
54{
43// registers for arm with vfpv3/neon
55
56// AArch32 registers with vfpv3/neon
44const int NUMREGS = 41; /* r0-r15, cpsr, d0-d31, fpscr */
45const int REG_R0 = 0;
46const int REG_F0 = 8;
47const int REG_CPSR = 8; /* bit 512 to bit 543 */
48const int REG_FPSCR = 40; /* bit 2592 to bit 2623 */
49
57const int NUMREGS = 41; /* r0-r15, cpsr, d0-d31, fpscr */
58const int REG_R0 = 0;
59const int REG_F0 = 8;
60const int REG_CPSR = 8; /* bit 512 to bit 543 */
61const int REG_FPSCR = 40; /* bit 2592 to bit 2623 */
62
63// AArch64 registers
64const int NUMREGS_64 = 98; // x0-x31, pc, cpsr (64-bit GPRs)
65 // v0-v31 (128-bit FPRs)
66const int REG_X0 = 0;
67const int REG_PC_64 = 32;
68const int REG_CPSR_64 = 33;
69const int REG_V0 = 34;
70
71const int MAX_NUMREGS = NUMREGS_64;
72
50class RemoteGDB : public BaseRemoteGDB
51{
52
53protected:
54 Addr notTakenBkpt;
55 Addr takenBkpt;
56
57protected:

--- 15 unchanged lines hidden ---
73class RemoteGDB : public BaseRemoteGDB
74{
75
76protected:
77 Addr notTakenBkpt;
78 Addr takenBkpt;
79
80protected:

--- 15 unchanged lines hidden ---