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

Subversion Repositories fwrisc

[/] [fwrisc/] [trunk/] [ve/] [fwrisc/] [tests/] [riscv-compliance/] [riscv-test-suite/] [rv32si/] [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 "compliance_test.h"
12
#include "compliance_io.h"
13
#include "aw_test_macros.h"
14
 
15
 
16
RVTEST_RV64S
17
RVTEST_CODE_BEGIN
18
 
19
  # Make sure wfi doesn't halt the hart, even if interrupts are disabled
20
  csrc sstatus, SSTATUS_SIE
21
  csrs sie, SIP_SSIP
22
  csrs sip, SIP_SSIP
23
 
24
  li TESTNUM, 1
25
  SWSIG(1, TESTNUM)
26
  wfi
27
  li TESTNUM, 2
28
  SWSIG(2, TESTNUM)
29
 
30
  RVTEST_PASS
31
 
32
  TEST_PASSFAIL
33
 
34
RVTEST_CODE_END
35
 
36
  .data
37
RV_COMPLIANCE_DATA_BEGIN
38
test_res:
39
    .fill 40, 4, -1
40
RV_COMPLIANCE_DATA_END
41
 

powered by: WebSVN 2.1.0

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