Compare commits
	
		
			1 Commits
		
	
	
		
			8e1951f298
			...
			2e4faa4d50
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 2e4faa4d50 | 
| @@ -219,7 +219,7 @@ public: | ||||
|  | ||||
|         mstatus_t mstatus; | ||||
|  | ||||
|         static const reg_t mstatus_reset_val = 0xa00000000; | ||||
|         static const reg_t mstatus_reset_val = 0x1800; | ||||
|  | ||||
|         void write_mstatus(T val) { | ||||
|             auto mask = get_mask() &0xff; // MPP is hardcode as 0x3 | ||||
| @@ -228,7 +228,21 @@ public: | ||||
|         } | ||||
|  | ||||
|         static constexpr T get_mask() { | ||||
|             return 0x8000000f007ff9ddULL; // 0b1...0 1111 0000 0000 0111 1111 1111 1001 1011 1011 | ||||
|             //return 0x8000000f007ff9ddULL; // 0b1...0 1111 0000 0000 0111 1111 1111 1001 1011 1011 | ||||
|             // | ||||
|             //                +-TSR | ||||
|             //                |+-TW | ||||
|             //                ||+-TVM | ||||
|             //                |||+-MXR | ||||
|             //                ||||+-SUM | ||||
|             //                |||||+-MPRV | ||||
|             //                |||||| +-XS | ||||
|             //                |||||| | +-FS | ||||
|             //                |||||| | | +-MPP | ||||
|             //                |||||| | | |  +-SPP | ||||
|             //                |||||| | | |  |+-MPIE | ||||
|             //                ||||||/|/|/|  ||   +-MIE | ||||
|             return 0b00000000000000000001100010001000; | ||||
|         } | ||||
|     }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user