URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 384 |
-- { dg-do compile }
|
-- { dg-do compile }
|
-- { dg-options "-O -gnatws" }
|
-- { dg-options "-O -gnatws" }
|
|
|
package body Varsize_Copy is
|
package body Varsize_Copy is
|
|
|
type Key_Mapping_Type is record
|
type Key_Mapping_Type is record
|
Page : Page_Type;
|
Page : Page_Type;
|
B : Boolean;
|
B : Boolean;
|
end record;
|
end record;
|
|
|
type Key_Mapping_Array is array (Key_Type) of Key_Mapping_Type;
|
type Key_Mapping_Array is array (Key_Type) of Key_Mapping_Type;
|
|
|
type Set is record
|
type Set is record
|
Key_Mappings : Key_Mapping_Array;
|
Key_Mappings : Key_Mapping_Array;
|
end record;
|
end record;
|
|
|
S : Set;
|
S : Set;
|
|
|
function F (Key : Key_Type) return Page_Type is
|
function F (Key : Key_Type) return Page_Type is
|
begin
|
begin
|
return S.Key_Mappings (Key).Page;
|
return S.Key_Mappings (Key).Page;
|
end;
|
end;
|
|
|
end Varsize_Copy;
|
end Varsize_Copy;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.