Home | History | Annotate | Download | only in mterp
      1 # Copyright (C) 2009 The Android Open Source Project
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License");
      4 # you may not use this file except in compliance with the License.
      5 # You may obtain a copy of the License at
      6 #
      7 #      http://www.apache.org/licenses/LICENSE-2.0
      8 #
      9 # Unless required by applicable law or agreed to in writing, software
     10 # distributed under the License is distributed on an "AS IS" BASIS,
     11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 # See the License for the specific language governing permissions and
     13 # limitations under the License.
     14 
     15 #
     16 # Configuration for ARMv5TE targets with VFP support.
     17 #
     18 # This is just ARMv5TE with replacements for the handlers that can benefit
     19 # from floating-point instructions.  Essentially all float/double
     20 # operations except for "remainder" and conversions to/from 64-bit ints.
     21 #
     22 
     23 handler-size 64
     24 
     25 # source for the instruction table stub
     26 asm-stub armv5te/stub.S
     27 
     28 # file header and basic definitions
     29 import c/header.c
     30 import armv5te/header.S
     31 
     32 # C pre-processor defines for stub C instructions
     33 import cstubs/stubdefs.c
     34 
     35 # highly-platform-specific defs
     36 import armv5te/platform.S
     37 
     38 # common defs for the C helpers; include this before the instruction handlers
     39 import c/opcommon.c
     40 
     41 # arch-specific entry point to interpreter
     42 import armv5te/entry.S
     43 
     44 # opcode list; argument to op-start is default directory
     45 op-start armv5te
     46     op OP_ADD_DOUBLE arm-vfp
     47     op OP_ADD_DOUBLE_2ADDR arm-vfp
     48     op OP_ADD_FLOAT arm-vfp
     49     op OP_ADD_FLOAT_2ADDR arm-vfp
     50     op OP_CMPG_DOUBLE arm-vfp
     51     op OP_CMPG_FLOAT arm-vfp
     52     op OP_CMPL_DOUBLE arm-vfp
     53     op OP_CMPL_FLOAT arm-vfp
     54     op OP_DIV_DOUBLE arm-vfp
     55     op OP_DIV_DOUBLE_2ADDR arm-vfp
     56     op OP_DIV_FLOAT arm-vfp
     57     op OP_DIV_FLOAT_2ADDR arm-vfp
     58     op OP_DOUBLE_TO_FLOAT arm-vfp
     59     op OP_DOUBLE_TO_INT arm-vfp
     60     op OP_FLOAT_TO_DOUBLE arm-vfp
     61     op OP_FLOAT_TO_INT arm-vfp
     62     op OP_INT_TO_DOUBLE arm-vfp
     63     op OP_INT_TO_FLOAT arm-vfp
     64     op OP_MUL_DOUBLE arm-vfp
     65     op OP_MUL_DOUBLE_2ADDR arm-vfp
     66     op OP_MUL_FLOAT arm-vfp
     67     op OP_MUL_FLOAT_2ADDR arm-vfp
     68     op OP_SUB_DOUBLE arm-vfp
     69     op OP_SUB_DOUBLE_2ADDR arm-vfp
     70     op OP_SUB_FLOAT arm-vfp
     71     op OP_SUB_FLOAT_2ADDR arm-vfp
     72 
     73     # use trivial integer operation
     74     #op OP_NEG_DOUBLE armv5te
     75     #op OP_NEG_FLOAT armv5te
     76 
     77     # use __aeabi_* functions
     78     #op OP_DOUBLE_TO_LONG armv5te
     79     #op OP_FLOAT_TO_LONG armv5te
     80     #op OP_LONG_TO_DOUBLE armv5te
     81     #op OP_LONG_TO_FLOAT armv5te
     82 
     83     # no "remainder" op in vfp or libgcc.a; use libc function
     84     #op OP_REM_DOUBLE armv5te
     85     #op OP_REM_DOUBLE_2ADDR armv5te
     86     #op OP_REM_FLOAT armv5te
     87     #op OP_REM_FLOAT_2ADDR armv5te
     88 
     89     # experiment, unrelated to vfp
     90     #op OP_INT_TO_BYTE armv6
     91     #op OP_INT_TO_CHAR armv6
     92     #op OP_INT_TO_SHORT armv6
     93 op-end
     94 
     95 # "helper" code for C; include if you use any of the C stubs (this generates
     96 # object code, so it's normally excluded)
     97 ##import c/gotoTargets.c
     98 
     99 # end of defs; include this when cstubs/stubdefs.c is included
    100 import cstubs/enddefs.c
    101 
    102 # common subroutines for asm
    103 import armv5te/footer.S
    104 import armv5te/debug.c
    105