remote_gdb.hh (12031:46116545e745) remote_gdb.hh (12449:2260f4a68210)
1/*
2 * Copyright (c) 2015 LabWare
3 * Copyright (c) 2002-2005 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) ---

64 uint32_t fsr;
65 uint32_t csr;
66 } r;
67 public:
68 char *data() const { return (char *)&r; }
69 size_t size() const { return sizeof(r); }
70 void getRegs(ThreadContext*);
71 void setRegs(ThreadContext*) const;
1/*
2 * Copyright (c) 2015 LabWare
3 * Copyright (c) 2002-2005 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) ---

64 uint32_t fsr;
65 uint32_t csr;
66 } r;
67 public:
68 char *data() const { return (char *)&r; }
69 size_t size() const { return sizeof(r); }
70 void getRegs(ThreadContext*);
71 void setRegs(ThreadContext*) const;
72 const std::string name() const { return gdb->name() + ".SPARCGdbRegCache"; }
72 const std::string
73 name() const
74 {
75 return gdb->name() + ".SPARCGdbRegCache";
76 }
73 };
74
75 class SPARC64GdbRegCache : public BaseGdbRegCache
76 {
77 using BaseGdbRegCache::BaseGdbRegCache;
78 private:
79 struct {
80 uint64_t gpr[32];

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

86 uint64_t fprs;
87 uint64_t y;
88 } r;
89 public:
90 char *data() const { return (char *)&r; }
91 size_t size() const { return sizeof(r); }
92 void getRegs(ThreadContext*);
93 void setRegs(ThreadContext*) const;
77 };
78
79 class SPARC64GdbRegCache : public BaseGdbRegCache
80 {
81 using BaseGdbRegCache::BaseGdbRegCache;
82 private:
83 struct {
84 uint64_t gpr[32];

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

90 uint64_t fprs;
91 uint64_t y;
92 } r;
93 public:
94 char *data() const { return (char *)&r; }
95 size_t size() const { return sizeof(r); }
96 void getRegs(ThreadContext*);
97 void setRegs(ThreadContext*) const;
94 const std::string name() const { return gdb->name() + ".SPARC64GdbRegCache"; }
98 const std::string
99 name() const
100 {
101 return gdb->name() + ".SPARC64GdbRegCache";
102 }
95 };
96
97 SPARCGdbRegCache regCache32;
98 SPARC64GdbRegCache regCache64;
99
100 public:
103 };
104
105 SPARCGdbRegCache regCache32;
106 SPARC64GdbRegCache regCache64;
107
108 public:
101 RemoteGDB(System *_system, ThreadContext *tc);
109 RemoteGDB(System *_system, ThreadContext *tc, int _port);
102 BaseGdbRegCache *gdbRegs();
103};
104} // namespace SparcISA
105
106#endif /* __ARCH_SPARC_REMOTE_GDB_H__ */
110 BaseGdbRegCache *gdbRegs();
111};
112} // namespace SparcISA
113
114#endif /* __ARCH_SPARC_REMOTE_GDB_H__ */