< prev index next >

src/hotspot/cpu/ppc/disassembler_ppc.cpp

Print this page
rev 56744 : 8233078: fix minimal VM build on Linux ppc64(le)


  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *
  24  */
  25 
  26 #include "asm/macroAssembler.inline.hpp"
  27 #include "code/codeCache.hpp"
  28 #include "compiler/disassembler.hpp"
  29 #include "depChecker_ppc.hpp"
  30 #include "gc/cms/concurrentMarkSweepGeneration.inline.hpp"
  31 #include "gc/cms/parOopClosures.inline.hpp"
  32 #include "gc/shared/collectedHeap.hpp"
  33 #include "gc/shared/cardTableBarrierSet.hpp"
  34 #include "gc/shared/genOopClosures.inline.hpp"
  35 #include "oops/oop.inline.hpp"
  36 #include "runtime/handles.inline.hpp"
  37 #include "runtime/stubCodeGenerator.hpp"
  38 #include "runtime/stubRoutines.hpp"
  39 
  40 // Macro to print instruction bits.
  41 // numbering of instruction bits on ppc64 is (highest) 0 1 ... 30 31 (lowest).
  42 #define print_instruction_bits(st, instruction, start_bit, end_bit) \
  43   { assert((start_bit) <= (end_bit), "sanity check"); \
  44     for (int i=(31-(start_bit));i>=(31-(end_bit));i--) { \
  45       (st)->print("%d", ((instruction) >> i) & 0x1); \
  46     } \
  47   }
  48 
  49 // Macro to decode "bo" instruction bits.
  50 #define print_decoded_bo_bits(env, instruction, end_bit) \
  51   { int bo_bits = (instruction >> (31 - (end_bit))) & 0x1f; \




  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *
  24  */
  25 
  26 #include "asm/macroAssembler.inline.hpp"
  27 #include "code/codeCache.hpp"
  28 #include "compiler/disassembler.hpp"
  29 #include "depChecker_ppc.hpp"


  30 #include "gc/shared/collectedHeap.hpp"
  31 #include "gc/shared/cardTableBarrierSet.hpp"
  32 #include "gc/shared/genOopClosures.inline.hpp"
  33 #include "oops/oop.inline.hpp"
  34 #include "runtime/handles.inline.hpp"
  35 #include "runtime/stubCodeGenerator.hpp"
  36 #include "runtime/stubRoutines.hpp"
  37 
  38 // Macro to print instruction bits.
  39 // numbering of instruction bits on ppc64 is (highest) 0 1 ... 30 31 (lowest).
  40 #define print_instruction_bits(st, instruction, start_bit, end_bit) \
  41   { assert((start_bit) <= (end_bit), "sanity check"); \
  42     for (int i=(31-(start_bit));i>=(31-(end_bit));i--) { \
  43       (st)->print("%d", ((instruction) >> i) & 0x1); \
  44     } \
  45   }
  46 
  47 // Macro to decode "bo" instruction bits.
  48 #define print_decoded_bo_bits(env, instruction, end_bit) \
  49   { int bo_bits = (instruction >> (31 - (end_bit))) & 0x1f; \


< prev index next >