Chromium Code Reviews| Index: src/arm/constants-arm.h |
| =================================================================== |
| --- src/arm/constants-arm.h (revision 2053) |
| +++ src/arm/constants-arm.h (working copy) |
| @@ -28,6 +28,17 @@ |
| #ifndef V8_ARM_CONSTANTS_ARM_H_ |
| #define V8_ARM_CONSTANTS_ARM_H_ |
| +// The simulator emulates the EABI so we define the __ARM_EABI__ macro if we |
| +// are not running on real ARM hardware. One reason for this is that the |
| +// old ABI uses fp registers in the calling convention and the simulator does |
| +// not simulate fp registers or coroutine instructions. |
| +#ifndef __arm__ |
| +# ifdef __ARM_EABI__ |
| +# undef __ARM_EABI__ |
| +# endif |
| +# define __ARM_EABI__ 1 |
|
iposva
2009/06/08 21:48:41
It makes me a bit uncomfortable to be defining "co
Erik Corry
2009/06/09 09:27:00
Fixed with the introduction of USE_ARM_EABI macro
|
| +#endif |
| + |
| namespace assembler { |
| namespace arm { |
| @@ -104,15 +115,9 @@ |
| // simulator. |
| enum SoftwareInterruptCodes { |
| // transition to C code |
| - call_rt_r5 = 0x10, |
| - call_rt_r2 = 0x11, |
| + call_rt_redirected = 0x10, |
| // break point |
| - break_point = 0x20, |
| - // FP operations. These simulate calling into C for a moment to do fp ops. |
| - // They should trash all caller-save registers. |
| - simulator_fp_add = 0x21, |
| - simulator_fp_sub = 0x22, |
| - simulator_fp_mul = 0x23 |
| + break_point = 0x20 |
| }; |