src/hotspot/cpu/sparc/register_definitions_sparc.cpp
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 46461 hotspot/src/cpu/sparc/vm/register_definitions_sparc.cpp@7155d5ff2d07
child 49625 94ef8da94ce9
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
40107
e59cd9dd42a5 7008747: Header files with conditional behaviour can not be precompiled
dholmes
parents: 35214
diff changeset
     2
 * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 2534
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 2534
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 2534
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
// make sure the defines don't screw up the declarations later on in this file
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
#define DONT_USE_REGISTER_DEFINES
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
40107
e59cd9dd42a5 7008747: Header files with conditional behaviour can not be precompiled
dholmes
parents: 35214
diff changeset
    28
// Note: precompiled headers can not be used in this file because of the above
e59cd9dd42a5 7008747: Header files with conditional behaviour can not be precompiled
dholmes
parents: 35214
diff changeset
    29
//       definition
e59cd9dd42a5 7008747: Header files with conditional behaviour can not be precompiled
dholmes
parents: 35214
diff changeset
    30
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5702
diff changeset
    31
#include "asm/assembler.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5702
diff changeset
    32
#include "asm/register.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5702
diff changeset
    33
#include "interp_masm_sparc.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5702
diff changeset
    34
#include "register_sparc.hpp"
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
REGISTER_DEFINITION(Register, noreg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
REGISTER_DEFINITION(Register, G0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
REGISTER_DEFINITION(Register, G1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
REGISTER_DEFINITION(Register, G2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
REGISTER_DEFINITION(Register, G3);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
REGISTER_DEFINITION(Register, G4);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
REGISTER_DEFINITION(Register, G5);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
REGISTER_DEFINITION(Register, G6);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
REGISTER_DEFINITION(Register, G7);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
REGISTER_DEFINITION(Register, O0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
REGISTER_DEFINITION(Register, O1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
REGISTER_DEFINITION(Register, O2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
REGISTER_DEFINITION(Register, O3);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
REGISTER_DEFINITION(Register, O4);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
REGISTER_DEFINITION(Register, O5);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
REGISTER_DEFINITION(Register, O6);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
REGISTER_DEFINITION(Register, O7);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
REGISTER_DEFINITION(Register, L0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
REGISTER_DEFINITION(Register, L1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
REGISTER_DEFINITION(Register, L2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
REGISTER_DEFINITION(Register, L3);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
REGISTER_DEFINITION(Register, L4);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
REGISTER_DEFINITION(Register, L5);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
REGISTER_DEFINITION(Register, L6);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
REGISTER_DEFINITION(Register, L7);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
REGISTER_DEFINITION(Register, I0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
REGISTER_DEFINITION(Register, I1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
REGISTER_DEFINITION(Register, I2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
REGISTER_DEFINITION(Register, I3);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
REGISTER_DEFINITION(Register, I4);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
REGISTER_DEFINITION(Register, I5);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
REGISTER_DEFINITION(Register, I6);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
REGISTER_DEFINITION(Register, I7);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
REGISTER_DEFINITION(Register, FP);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
REGISTER_DEFINITION(Register, SP);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
REGISTER_DEFINITION(FloatRegister, fnoreg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
REGISTER_DEFINITION(FloatRegister, F0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
REGISTER_DEFINITION(FloatRegister, F1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
REGISTER_DEFINITION(FloatRegister, F2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
REGISTER_DEFINITION(FloatRegister, F3);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
REGISTER_DEFINITION(FloatRegister, F4);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
REGISTER_DEFINITION(FloatRegister, F5);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
REGISTER_DEFINITION(FloatRegister, F6);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
REGISTER_DEFINITION(FloatRegister, F7);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
REGISTER_DEFINITION(FloatRegister, F8);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
REGISTER_DEFINITION(FloatRegister, F9);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
REGISTER_DEFINITION(FloatRegister, F10);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
REGISTER_DEFINITION(FloatRegister, F11);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
REGISTER_DEFINITION(FloatRegister, F12);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
REGISTER_DEFINITION(FloatRegister, F13);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
REGISTER_DEFINITION(FloatRegister, F14);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
REGISTER_DEFINITION(FloatRegister, F15);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
REGISTER_DEFINITION(FloatRegister, F16);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
REGISTER_DEFINITION(FloatRegister, F17);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
REGISTER_DEFINITION(FloatRegister, F18);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
REGISTER_DEFINITION(FloatRegister, F19);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
REGISTER_DEFINITION(FloatRegister, F20);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
REGISTER_DEFINITION(FloatRegister, F21);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
REGISTER_DEFINITION(FloatRegister, F22);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
REGISTER_DEFINITION(FloatRegister, F23);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
REGISTER_DEFINITION(FloatRegister, F24);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
REGISTER_DEFINITION(FloatRegister, F25);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
REGISTER_DEFINITION(FloatRegister, F26);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
REGISTER_DEFINITION(FloatRegister, F27);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
REGISTER_DEFINITION(FloatRegister, F28);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
REGISTER_DEFINITION(FloatRegister, F29);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
REGISTER_DEFINITION(FloatRegister, F30);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
REGISTER_DEFINITION(FloatRegister, F31);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
REGISTER_DEFINITION(FloatRegister, F32);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
REGISTER_DEFINITION(FloatRegister, F34);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
REGISTER_DEFINITION(FloatRegister, F36);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
REGISTER_DEFINITION(FloatRegister, F38);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
REGISTER_DEFINITION(FloatRegister, F40);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
REGISTER_DEFINITION(FloatRegister, F42);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
REGISTER_DEFINITION(FloatRegister, F44);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
REGISTER_DEFINITION(FloatRegister, F46);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
REGISTER_DEFINITION(FloatRegister, F48);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
REGISTER_DEFINITION(FloatRegister, F50);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
REGISTER_DEFINITION(FloatRegister, F52);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
REGISTER_DEFINITION(FloatRegister, F54);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
REGISTER_DEFINITION(FloatRegister, F56);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
REGISTER_DEFINITION(FloatRegister, F58);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
REGISTER_DEFINITION(FloatRegister, F60);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
REGISTER_DEFINITION(FloatRegister, F62);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
REGISTER_DEFINITION(     Register, Otos_i);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
REGISTER_DEFINITION(     Register, Otos_l);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
REGISTER_DEFINITION(     Register, Otos_l1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
REGISTER_DEFINITION(     Register, Otos_l2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
REGISTER_DEFINITION(FloatRegister, Ftos_f);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
REGISTER_DEFINITION(FloatRegister, Ftos_d);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
REGISTER_DEFINITION(FloatRegister, Ftos_d1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
REGISTER_DEFINITION(FloatRegister, Ftos_d2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
REGISTER_DEFINITION(Register, G2_thread);
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   139
REGISTER_DEFINITION(Register, G6_heapbase);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
REGISTER_DEFINITION(Register, G5_method);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
REGISTER_DEFINITION(Register, G5_megamorphic_method);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
REGISTER_DEFINITION(Register, G5_inline_cache_reg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
REGISTER_DEFINITION(Register, Gargs);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
REGISTER_DEFINITION(Register, L7_thread_cache);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
REGISTER_DEFINITION(Register, Gframe_size);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
REGISTER_DEFINITION(Register, G1_scratch);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
REGISTER_DEFINITION(Register, G3_scratch);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
REGISTER_DEFINITION(Register, G4_scratch);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
REGISTER_DEFINITION(Register, Gtemp);
5687
b862d1f189bd 6930772: JSR 292 needs to support SPARC C1
twisti
parents: 2534
diff changeset
   150
REGISTER_DEFINITION(Register, Lentry_args);
b862d1f189bd 6930772: JSR 292 needs to support SPARC C1
twisti
parents: 2534
diff changeset
   151
b862d1f189bd 6930772: JSR 292 needs to support SPARC C1
twisti
parents: 2534
diff changeset
   152
// JSR 292
2534
08dac9ce0cd7 6655638: dynamic languages need method handles
jrose
parents: 670
diff changeset
   153
REGISTER_DEFINITION(Register, G5_method_type);
08dac9ce0cd7 6655638: dynamic languages need method handles
jrose
parents: 670
diff changeset
   154
REGISTER_DEFINITION(Register, G3_method_handle);
5687
b862d1f189bd 6930772: JSR 292 needs to support SPARC C1
twisti
parents: 2534
diff changeset
   155
REGISTER_DEFINITION(Register, L7_mh_SP_save);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
REGISTER_DEFINITION(Register, Lesp);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
REGISTER_DEFINITION(Register, Lbcp);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
REGISTER_DEFINITION(Register, Lmonitors);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
REGISTER_DEFINITION(Register, Lbyte_code);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
REGISTER_DEFINITION(Register, Llast_SP);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
REGISTER_DEFINITION(Register, Lscratch);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
REGISTER_DEFINITION(Register, Lscratch2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
REGISTER_DEFINITION(Register, LcpoolCache);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
REGISTER_DEFINITION(Register, I5_savedSP);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
REGISTER_DEFINITION(Register, O5_savedSP);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
REGISTER_DEFINITION(Register, IdispatchAddress);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
REGISTER_DEFINITION(Register, ImethodDataPtr);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
REGISTER_DEFINITION(Register, Lmethod);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
REGISTER_DEFINITION(Register, Llocals);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
REGISTER_DEFINITION(Register, Oexception);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
REGISTER_DEFINITION(Register, Oissuing_pc);