OpenCores
URL https://opencores.org/ocsvn/fwrisc/fwrisc/trunk

Subversion Repositories fwrisc

[/] [fwrisc/] [trunk/] [ve/] [fwrisc/] [tests/] [riscv-compliance/] [riscv-test-suite/] [rv32mi/] [rv64si/] [wfi.S] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 mballance
# See LICENSE for license details.
2
 
3
#*****************************************************************************
4
# wfi.S
5
#-----------------------------------------------------------------------------
6
#
7
# Test wait-for-interrupt instruction.
8
#
9
 
10
#include "riscv_test.h"
11
#include "test_macros.h"
12
 
13
RVTEST_RV64S
14
RVTEST_CODE_BEGIN
15
 
16
  # Make sure wfi doesn't halt the hart, even if interrupts are disabled
17
  csrc sstatus, SSTATUS_SIE
18
  csrs sie, SIP_SSIP
19
  csrs sip, SIP_SSIP
20
  wfi
21
 
22
  RVTEST_PASS
23
 
24
  TEST_PASSFAIL
25
 
26
RVTEST_CODE_END
27
 
28
  .data
29
RVTEST_DATA_BEGIN
30
 
31
  TEST_DATA
32
 
33
RVTEST_DATA_END

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.