sim.h 434 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2005 MIPS Technologies, Inc. All rights reserved.
  4. */
  5. #ifndef _ASM_MIPS_BOARDS_SIM_H
  6. #define _ASM_MIPS_BOARDS_SIM_H
  7. #define STATS_ON 1
  8. #define STATS_OFF 2
  9. #define STATS_CLEAR 3
  10. #define STATS_DUMP 4
  11. #define TRACE_ON 5
  12. #define TRACE_OFF 6
  13. #define simcfg(code) \
  14. ({ \
  15. __asm__ __volatile__( \
  16. "sltiu $0,$0, %0" \
  17. ::"i"(code) \
  18. ); \
  19. })
  20. #endif