assembler_linux_sparc.cpp revision 133
133N/A/*
133N/A * Copyright 1999-2006 Sun Microsystems, Inc. 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 *
133N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
133N/A * CA 95054 USA or visit www.sun.com if you need additional information or
133N/A * have any questions.
133N/A *
133N/A */
133N/A
133N/A#include "incls/_precompiled.incl"
133N/A#include "incls/_assembler_linux_sparc.cpp.incl"
133N/A
133N/A#include <asm-sparc/traps.h>
133N/A
133N/Abool MacroAssembler::needs_explicit_null_check(intptr_t offset) {
133N/A // Since the linux kernel resides at the low end of
133N/A // user address space, no null pointer check is needed.
133N/A return offset < 0 || offset >= 0x100000;
133N/A}
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); }