src/os_cpu/linux_sparc/vm/assembler_linux_sparc.cpp

Thu, 06 Dec 2012 09:57:41 -0800

author
twisti
date
Thu, 06 Dec 2012 09:57:41 -0800
changeset 4323
f0c2369fda5a
parent 2314
f95d63e2154a
permissions
-rw-r--r--

8003250: SPARC: move MacroAssembler into separate file
Reviewed-by: jrose, kvn

phh@568 1 /*
stefank@2314 2 * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
phh@568 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
phh@568 4 *
phh@568 5 * This code is free software; you can redistribute it and/or modify it
phh@568 6 * under the terms of the GNU General Public License version 2 only, as
phh@568 7 * published by the Free Software Foundation.
phh@568 8 *
phh@568 9 * This code is distributed in the hope that it will be useful, but WITHOUT
phh@568 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
phh@568 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
phh@568 12 * version 2 for more details (a copy is included in the LICENSE file that
phh@568 13 * accompanied this code).
phh@568 14 *
phh@568 15 * You should have received a copy of the GNU General Public License version
phh@568 16 * 2 along with this work; if not, write to the Free Software Foundation,
phh@568 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
phh@568 18 *
trims@1907 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1907 20 * or visit www.oracle.com if you need additional information or have any
trims@1907 21 * questions.
phh@568 22 *
phh@568 23 */
phh@568 24
stefank@2314 25 #include "precompiled.hpp"
twisti@4323 26 #include "asm/macroAssembler.hpp"
stefank@2314 27 #include "runtime/os.hpp"
stefank@2314 28 #include "runtime/threadLocalStorage.hpp"
phh@568 29
phh@568 30 #include <asm-sparc/traps.h>
phh@568 31
phh@568 32 void MacroAssembler::read_ccr_trap(Register ccr_save) {
phh@568 33 // No implementation
phh@568 34 breakpoint_trap();
phh@568 35 }
phh@568 36
phh@568 37 void MacroAssembler::write_ccr_trap(Register ccr_save, Register scratch1, Register scratch2) {
phh@568 38 // No implementation
phh@568 39 breakpoint_trap();
phh@568 40 }
phh@568 41
phh@568 42 void MacroAssembler::flush_windows_trap() { trap(SP_TRAP_FWIN); }
phh@568 43 void MacroAssembler::clean_windows_trap() { trap(SP_TRAP_CWIN); }
phh@568 44
phh@568 45 // Use software breakpoint trap until we figure out how to do this on Linux
phh@568 46 void MacroAssembler::get_psr_trap() { trap(SP_TRAP_SBPT); }
phh@568 47 void MacroAssembler::set_psr_trap() { trap(SP_TRAP_SBPT); }

mercurial