m5op_x86.S revision 9351:4229aedfdd09
1955SN/A/* 2955SN/A * Copyright (c) 2003-2006 The Regents of The University of Michigan 311408Sandreas.sandberg@arm.com * All rights reserved. 49812Sandreas.hansson@arm.com * 59812Sandreas.hansson@arm.com * Redistribution and use in source and binary forms, with or without 69812Sandreas.hansson@arm.com * modification, are permitted provided that the following conditions are 79812Sandreas.hansson@arm.com * met: redistributions of source code must retain the above copyright 89812Sandreas.hansson@arm.com * notice, this list of conditions and the following disclaimer; 99812Sandreas.hansson@arm.com * redistributions in binary form must reproduce the above copyright 109812Sandreas.hansson@arm.com * notice, this list of conditions and the following disclaimer in the 119812Sandreas.hansson@arm.com * documentation and/or other materials provided with the distribution; 129812Sandreas.hansson@arm.com * neither the name of the copyright holders nor the names of its 139812Sandreas.hansson@arm.com * contributors may be used to endorse or promote products derived from 149812Sandreas.hansson@arm.com * this software without specific prior written permission. 157816Ssteve.reinhardt@amd.com * 165871Snate@binkert.org * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 171762SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18955SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 19955SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 20955SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 21955SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22955SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23955SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24955SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25955SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26955SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27955SN/A * 28955SN/A * Authors: Gabe Black 29955SN/A * Nathan Binkert 30955SN/A * Ali Saidi 31955SN/A */ 32955SN/A 33955SN/A#include "m5ops.h" 34955SN/A 35955SN/A#define TWO_BYTE_OP(name, number) \ 36955SN/A .globl name; \ 37955SN/A .func name; \ 38955SN/Aname: \ 39955SN/A .byte 0x0F, 0x04; \ 40955SN/A .word number; \ 41955SN/A ret; \ 422665Ssaidi@eecs.umich.edu .endfunc; 432665Ssaidi@eecs.umich.edu 445863Snate@binkert.orgTWO_BYTE_OP(arm, arm_func) 45955SN/ATWO_BYTE_OP(quiesce, quiesce_func) 46955SN/ATWO_BYTE_OP(quiesceNs, quiescens_func) 47955SN/ATWO_BYTE_OP(quiesceCycle, quiescecycle_func) 48955SN/ATWO_BYTE_OP(quiesceTime, quiescetime_func) 49955SN/ATWO_BYTE_OP(rpns, rpns_func) 508878Ssteve.reinhardt@amd.comTWO_BYTE_OP(m5_exit, exit_func) 512632Sstever@eecs.umich.eduTWO_BYTE_OP(m5_initparam, initparam_func) 528878Ssteve.reinhardt@amd.comTWO_BYTE_OP(m5_loadsymbol, loadsymbol_func) 532632Sstever@eecs.umich.eduTWO_BYTE_OP(m5_reset_stats, resetstats_func) 54955SN/ATWO_BYTE_OP(m5_dump_stats, dumpstats_func) 558878Ssteve.reinhardt@amd.comTWO_BYTE_OP(m5_dumpreset_stats, dumprststats_func) 562632Sstever@eecs.umich.eduTWO_BYTE_OP(m5_checkpoint, ckpt_func) 572761Sstever@eecs.umich.eduTWO_BYTE_OP(m5_readfile, readfile_func) 582632Sstever@eecs.umich.eduTWO_BYTE_OP(m5_writefile, writefile_func) 592632Sstever@eecs.umich.eduTWO_BYTE_OP(m5_debugbreak, debugbreak_func) 602632Sstever@eecs.umich.eduTWO_BYTE_OP(m5_switchcpu, switchcpu_func) 612761Sstever@eecs.umich.eduTWO_BYTE_OP(m5_addsymbol, addsymbol_func) 622761Sstever@eecs.umich.eduTWO_BYTE_OP(m5_panic, panic_func) 632761Sstever@eecs.umich.eduTWO_BYTE_OP(m5_work_begin, work_begin_func) 648878Ssteve.reinhardt@amd.comTWO_BYTE_OP(m5_work_end, work_end_func) 658878Ssteve.reinhardt@amd.com