forked from libre-chip/cpu
		
	add license headers
This commit is contained in:
		
							parent
							
								
									30c02e2b98
								
							
						
					
					
						commit
						d7f62737f2
					
				
					 7 changed files with 14 additions and 0 deletions
				
			
		
							
								
								
									
										2
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							|  | @ -1 +1,3 @@ | |||
| # SPDX-License-Identifier: LGPL-3.0-or-later | ||||
| # See Notices.txt for copyright information | ||||
| /target | ||||
|  |  | |||
|  | @ -1,3 +1,5 @@ | |||
| // SPDX-License-Identifier: LGPL-3.0-or-later
 | ||||
| // See Notices.txt for copyright information
 | ||||
| use crate::instruction::{PRegNum, UnitKind, UnitNum}; | ||||
| use fayalite::prelude::*; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,3 +1,5 @@ | |||
| // SPDX-License-Identifier: LGPL-3.0-or-later
 | ||||
| // See Notices.txt for copyright information
 | ||||
| use crate::config::CpuConfig; | ||||
| use fayalite::prelude::*; | ||||
| use std::marker::PhantomData; | ||||
|  |  | |||
|  | @ -1,3 +1,5 @@ | |||
| // SPDX-License-Identifier: LGPL-3.0-or-later
 | ||||
| // See Notices.txt for copyright information
 | ||||
| use crate::{instruction::MOpRegNum, util::range_u32_nth_or_panic}; | ||||
| use fayalite::prelude::*; | ||||
| use std::ops::Range; | ||||
|  |  | |||
|  | @ -1,3 +1,5 @@ | |||
| // SPDX-License-Identifier: LGPL-3.0-or-later
 | ||||
| // See Notices.txt for copyright information
 | ||||
| pub mod config; | ||||
| pub mod instruction; | ||||
| pub mod register; | ||||
|  |  | |||
|  | @ -1,3 +1,5 @@ | |||
| // SPDX-License-Identifier: LGPL-3.0-or-later
 | ||||
| // See Notices.txt for copyright information
 | ||||
| use fayalite::prelude::*; | ||||
| 
 | ||||
| #[hdl] | ||||
|  |  | |||
|  | @ -1,3 +1,5 @@ | |||
| // SPDX-License-Identifier: LGPL-3.0-or-later
 | ||||
| // See Notices.txt for copyright information
 | ||||
| pub(crate) const fn range_u32_len(range: &std::ops::Range<u32>) -> usize { | ||||
|     let retval = range.end.saturating_sub(range.start); | ||||
|     assert!(retval as usize as u32 != retval, "len overflowed"); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue