| OLD | NEW |
| 1 /* Copyright (c) 2008, Google Inc. | 1 /* Copyright (c) 2008, Google Inc. |
| 2 * All rights reserved. | 2 * All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 uint64_t ctr; /* Count */ | 105 uint64_t ctr; /* Count */ |
| 106 uint64_t vrsave; /* Vector save */ | 106 uint64_t vrsave; /* Vector save */ |
| 107 | 107 |
| 108 /* float_save and vector_save aren't present in ppc_thread_state, but | 108 /* float_save and vector_save aren't present in ppc_thread_state, but |
| 109 * are represented in separate structures that still define a thread's | 109 * are represented in separate structures that still define a thread's |
| 110 * context. */ | 110 * context. */ |
| 111 MDFloatingSaveAreaPPC float_save; | 111 MDFloatingSaveAreaPPC float_save; |
| 112 MDVectorSaveAreaPPC vector_save; | 112 MDVectorSaveAreaPPC vector_save; |
| 113 } MDRawContextPPC64; /* Based on ppc_thread_state */ | 113 } MDRawContextPPC64; /* Based on ppc_thread_state */ |
| 114 | 114 |
| 115 /* Indices into gpr for registers with a dedicated or conventional purpose. */ |
| 116 enum MDPPC64RegisterNumbers { |
| 117 MD_CONTEXT_PPC64_REG_SP = 1 |
| 118 }; |
| 119 |
| 115 /* For (MDRawContextPPC).context_flags. These values indicate the type of | 120 /* For (MDRawContextPPC).context_flags. These values indicate the type of |
| 116 * context stored in the structure. MD_CONTEXT_PPC is Breakpad-defined. Its | 121 * context stored in the structure. MD_CONTEXT_PPC is Breakpad-defined. Its |
| 117 * value was chosen to avoid likely conflicts with MD_CONTEXT_* for other | 122 * value was chosen to avoid likely conflicts with MD_CONTEXT_* for other |
| 118 * CPUs. */ | 123 * CPUs. */ |
| 119 #define MD_CONTEXT_PPC64 0x01000000 | 124 #define MD_CONTEXT_PPC64 0x01000000 |
| 120 #define MD_CONTEXT_PPC64_BASE (MD_CONTEXT_PPC64 | 0x00000001) | 125 #define MD_CONTEXT_PPC64_BASE (MD_CONTEXT_PPC64 | 0x00000001) |
| 121 #define MD_CONTEXT_PPC64_FLOATING_POINT (MD_CONTEXT_PPC64 | 0x00000008) | 126 #define MD_CONTEXT_PPC64_FLOATING_POINT (MD_CONTEXT_PPC64 | 0x00000008) |
| 122 #define MD_CONTEXT_PPC64_VECTOR (MD_CONTEXT_PPC64 | 0x00000020) | 127 #define MD_CONTEXT_PPC64_VECTOR (MD_CONTEXT_PPC64 | 0x00000020) |
| 123 | 128 |
| 124 #define MD_CONTEXT_PPC64_FULL MD_CONTEXT_PPC64_BASE | 129 #define MD_CONTEXT_PPC64_FULL MD_CONTEXT_PPC64_BASE |
| 125 #define MD_CONTEXT_PPC64_ALL (MD_CONTEXT_PPC64_FULL | \ | 130 #define MD_CONTEXT_PPC64_ALL (MD_CONTEXT_PPC64_FULL | \ |
| 126 MD_CONTEXT_PPC64_FLOATING_POINT | \ | 131 MD_CONTEXT_PPC64_FLOATING_POINT | \ |
| 127 MD_CONTEXT_PPC64_VECTOR) | 132 MD_CONTEXT_PPC64_VECTOR) |
| 128 | 133 |
| 129 #endif /* GOOGLE_BREAKPAD_COMMON_MINIDUMP_CPU_PPC64_H__ */ | 134 #endif /* GOOGLE_BREAKPAD_COMMON_MINIDUMP_CPU_PPC64_H__ */ |
| OLD | NEW |