133N/A/*
1879N/A * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
133N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
133N/A *
133N/A * This code is free software; you can redistribute it and/or modify it
133N/A * under the terms of the GNU General Public License version 2 only, as
133N/A * published by the Free Software Foundation.
133N/A *
133N/A * This code is distributed in the hope that it will be useful, but WITHOUT
133N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
133N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
133N/A * version 2 for more details (a copy is included in the LICENSE file that
133N/A * accompanied this code).
133N/A *
133N/A * You should have received a copy of the GNU General Public License version
133N/A * 2 along with this work; if not, write to the Free Software Foundation,
133N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
133N/A *
1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A * or visit www.oracle.com if you need additional information or have any
1472N/A * questions.
133N/A *
133N/A */
133N/A
1879N/A#include "precompiled.hpp"
1879N/A#include "asm/assembler.hpp"
1879N/A#include "assembler_sparc.inline.hpp"
1879N/A#include "runtime/os.hpp"
1879N/A#include "runtime/threadLocalStorage.hpp"
133N/A
133N/A#include <asm-sparc/traps.h>
133N/A
133N/Avoid MacroAssembler::read_ccr_trap(Register ccr_save) {
133N/A // No implementation
133N/A breakpoint_trap();
133N/A}
133N/A
133N/Avoid MacroAssembler::write_ccr_trap(Register ccr_save, Register scratch1, Register scratch2) {
133N/A // No implementation
133N/A breakpoint_trap();
133N/A}
133N/A
133N/Avoid MacroAssembler::flush_windows_trap() { trap(SP_TRAP_FWIN); }
133N/Avoid MacroAssembler::clean_windows_trap() { trap(SP_TRAP_CWIN); }
133N/A
133N/A// Use software breakpoint trap until we figure out how to do this on Linux
133N/Avoid MacroAssembler::get_psr_trap() { trap(SP_TRAP_SBPT); }
133N/Avoid MacroAssembler::set_psr_trap() { trap(SP_TRAP_SBPT); }