Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (C) 2005 MIPS Technologies, Inc.  All rights reserved.
0004  */
0005 
0006 #ifndef _ASM_MIPS_BOARDS_SIM_H
0007 #define _ASM_MIPS_BOARDS_SIM_H
0008 
0009 #define STATS_ON    1
0010 #define STATS_OFF   2
0011 #define STATS_CLEAR 3
0012 #define STATS_DUMP  4
0013 #define TRACE_ON        5
0014 #define TRACE_OFF   6
0015 
0016 
0017 #define simcfg(code)                        \
0018 ({                     \
0019     __asm__  __volatile__( \
0020     "sltiu $0,$0, %0" \
0021         ::"i"(code)                 \
0022         ); \
0023 })
0024 
0025 
0026 
0027 #endif