2019-05-28 09:57:11 -07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2005-09-30 13:59:37 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2005 MIPS Technologies, Inc. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASM_MIPS_BOARDS_SIM_H
|
|
|
|
#define _ASM_MIPS_BOARDS_SIM_H
|
|
|
|
|
2013-01-22 12:59:30 +01:00
|
|
|
#define STATS_ON 1
|
|
|
|
#define STATS_OFF 2
|
|
|
|
#define STATS_CLEAR 3
|
|
|
|
#define STATS_DUMP 4
|
2005-09-30 13:59:37 +01:00
|
|
|
#define TRACE_ON 5
|
2013-01-22 12:59:30 +01:00
|
|
|
#define TRACE_OFF 6
|
2005-09-30 13:59:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
#define simcfg(code) \
|
|
|
|
({ \
|
2013-01-22 12:59:30 +01:00
|
|
|
__asm__ __volatile__( \
|
|
|
|
"sltiu $0,$0, %0" \
|
2005-09-30 13:59:37 +01:00
|
|
|
::"i"(code) \
|
|
|
|
); \
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|