process.hh (13166:88ad31e419ed) process.hh (13581:b6dcd0183747)
1/*
2* Copyright (c) 2012, 2018 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

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

82
83 void initState() override;
84
85 /** AArch32 AT_HWCAP */
86 uint32_t armHwcapImpl() const override;
87
88 public:
89
1/*
2* Copyright (c) 2012, 2018 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

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

82
83 void initState() override;
84
85 /** AArch32 AT_HWCAP */
86 uint32_t armHwcapImpl() const override;
87
88 public:
89
90 ArmISA::IntReg getSyscallArg(ThreadContext *tc, int &i, int width) override;
91 ArmISA::IntReg getSyscallArg(ThreadContext *tc, int &i) override;
92 void setSyscallArg(ThreadContext *tc, int i, ArmISA::IntReg val) override;
93 void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value) override;
90 RegVal getSyscallArg(ThreadContext *tc, int &i, int width) override;
91 RegVal getSyscallArg(ThreadContext *tc, int &i) override;
92 void setSyscallArg(ThreadContext *tc, int i, RegVal val) override;
93 void setSyscallReturn(ThreadContext *tc,
94 SyscallReturn return_value) override;
94};
95
96class ArmProcess64 : public ArmProcess
97{
98 protected:
99 ArmProcess64(ProcessParams * params, ObjectFile *objFile,
100 ObjectFile::Arch _arch);
101
102 void initState() override;
103
104 /** AArch64 AT_HWCAP */
105 uint32_t armHwcapImpl() const override;
106
107 public:
108
95};
96
97class ArmProcess64 : public ArmProcess
98{
99 protected:
100 ArmProcess64(ProcessParams * params, ObjectFile *objFile,
101 ObjectFile::Arch _arch);
102
103 void initState() override;
104
105 /** AArch64 AT_HWCAP */
106 uint32_t armHwcapImpl() const override;
107
108 public:
109
109 ArmISA::IntReg getSyscallArg(ThreadContext *tc, int &i, int width) override;
110 ArmISA::IntReg getSyscallArg(ThreadContext *tc, int &i) override;
111 void setSyscallArg(ThreadContext *tc, int i, ArmISA::IntReg val) override;
112 void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value) override;
110 RegVal getSyscallArg(ThreadContext *tc, int &i, int width) override;
111 RegVal getSyscallArg(ThreadContext *tc, int &i) override;
112 void setSyscallArg(ThreadContext *tc, int i, RegVal val) override;
113 void setSyscallReturn(ThreadContext *tc,
114 SyscallReturn return_value) override;
113};
114
115#endif // __ARM_PROCESS_HH__
116
115};
116
117#endif // __ARM_PROCESS_HH__
118