OLD | NEW |
1 /* Target-dependent code for GDB, the GNU debugger. | 1 /* Target-dependent code for GDB, the GNU debugger. |
2 | 2 |
3 Copyright (C) 2000-2005, 2007-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2000-2013 Free Software Foundation, Inc. |
4 | 4 |
5 This file is part of GDB. | 5 This file is part of GDB. |
6 | 6 |
7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
10 (at your option) any later version. | 10 (at your option) any later version. |
11 | 11 |
12 This program is distributed in the hope that it will be useful, | 12 This program is distributed in the hope that it will be useful, |
13 but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 PPC_SPE_ACC_REGNUM = 104, | 284 PPC_SPE_ACC_REGNUM = 104, |
285 PPC_SPE_FSCR_REGNUM = 105, | 285 PPC_SPE_FSCR_REGNUM = 105, |
286 PPC_VR0_REGNUM = 106, | 286 PPC_VR0_REGNUM = 106, |
287 PPC_VSCR_REGNUM = 138, | 287 PPC_VSCR_REGNUM = 138, |
288 PPC_VRSAVE_REGNUM = 139, | 288 PPC_VRSAVE_REGNUM = 139, |
289 PPC_VSR0_UPPER_REGNUM = 140, | 289 PPC_VSR0_UPPER_REGNUM = 140, |
290 PPC_VSR31_UPPER_REGNUM = 171, | 290 PPC_VSR31_UPPER_REGNUM = 171, |
291 PPC_NUM_REGS | 291 PPC_NUM_REGS |
292 }; | 292 }; |
293 | 293 |
| 294 /* An instruction to match. */ |
| 295 |
| 296 struct ppc_insn_pattern |
| 297 { |
| 298 unsigned int mask; /* mask the insn with this... */ |
| 299 unsigned int data; /* ...and see if it matches this. */ |
| 300 int optional; /* If non-zero, this insn may be absent. */ |
| 301 }; |
| 302 |
| 303 extern int ppc_insns_match_pattern (struct frame_info *frame, CORE_ADDR pc, |
| 304 struct ppc_insn_pattern *pattern, |
| 305 unsigned int *insns); |
| 306 extern CORE_ADDR ppc_insn_d_field (unsigned int insn); |
| 307 |
| 308 extern CORE_ADDR ppc_insn_ds_field (unsigned int insn); |
294 | 309 |
295 /* Instruction size. */ | 310 /* Instruction size. */ |
296 #define PPC_INSN_SIZE 4 | 311 #define PPC_INSN_SIZE 4 |
297 | 312 |
298 /* Estimate for the maximum number of instrctions in a function epilogue. */ | 313 /* Estimate for the maximum number of instrctions in a function epilogue. */ |
299 #define PPC_MAX_EPILOGUE_INSTRUCTIONS 52 | 314 #define PPC_MAX_EPILOGUE_INSTRUCTIONS 52 |
300 | 315 |
301 #endif /* ppc-tdep.h */ | 316 #endif /* ppc-tdep.h */ |
OLD | NEW |