mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	added machine info test that uses new test library
This commit is contained in:
		
							parent
							
								
									3c61d6eec2
								
							
						
					
					
						commit
						242b27705d
					
				| @ -1479,7 +1479,8 @@ string imperas32f[] = '{ | ||||
|     "rv64i_m/privilege/WALLY-MMU-SV39", "30A0", | ||||
|     "rv64i_m/privilege/WALLY-MMU-SV48", "30A0", | ||||
|     "rv64i_m/privilege/WALLY-PMP", "30A0", | ||||
|     "rv64i_m/privilege/WALLY-PMA", "30A0" | ||||
|     "rv64i_m/privilege/WALLY-PMA", "30A0", | ||||
|     "rv64i_m/privilege/WALLY-minfo-01", "30A0" | ||||
|  }; | ||||
| 
 | ||||
|  string wally64periph[] = '{ | ||||
|  | ||||
| @ -30,7 +30,8 @@ | ||||
| rv64i_sc_tests = \ | ||||
|     WALLY-MMU-SV39 \ | ||||
|     WALLY-MMU-SV48 \ | ||||
|     WALLY-PMP  | ||||
|     WALLY-PMP \ | ||||
|     WALLY-minfo-01 | ||||
| 
 | ||||
| target_tests_nosim = WALLY-PMA \ | ||||
| 
 | ||||
|  | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -0,0 +1,37 @@ | ||||
| /////////////////////////////////////////// | ||||
| // | ||||
| // WALLY-MMU | ||||
| // | ||||
| // Author: Kip Macsai-Goren <kmacsaigoren@g.hmc.edu>
 | ||||
| // | ||||
| // Created 2022-01-25 | ||||
| // | ||||
| // Copyright (C) 2021 Harvey Mudd College & Oklahoma State University | ||||
| // | ||||
| // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation | ||||
| // files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, | ||||
| // modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software | ||||
| // is furnished to do so, subject to the following conditions: | ||||
| // | ||||
| // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||||
| // | ||||
| // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||||
| // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS | ||||
| // BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT | ||||
| // OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||||
| /////////////////////////////////////////// | ||||
| 
 | ||||
| #include "NEW-LIB.h" | ||||
| 
 | ||||
| INIT_TESTS | ||||
| 
 | ||||
| // Test 5.2.3.1: tersting Read-only access to Machine info CSRs  | ||||
| 
 | ||||
| csr_r_access mvendorid | ||||
| csr_r_access marchid  | ||||
| csr_r_access mimpid  | ||||
| csr_r_access mhartid  | ||||
| # csr_r_access mconfigptr # *** unrecognized by make-compile?? may be unimplemented?? | ||||
| 
 | ||||
| 
 | ||||
| END_TESTS | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user