Repository navigation
Description
Feature Description
Around 100 functions in definitions.xml.gz only have a prototype, without actual definition; that's not a problem in itself. However, while some are actual prototypes with a terminating semicolon, e.g.,
<operation>
<code>function Std::Bits::Align_Down(implicit size : {0..}, left : Bits(size), right : {0..}) -> Bits(size);</code>
<callee>Std::Integer::Is_Power_Of_Two</callee>
<callee>Std::Integer::Subtract</callee>
<callee>Std::Bits::And</callee>
<callee>Std::Bits::Not</callee>
<caller>CET::Shadow_Stack_Switch</caller>
<caller>Calculate_Bit_Offset</caller>
<caller>Instr_RSTORSSP</caller>
</operation>
many lack that semicolon
<operation>
<code>function Cache::Demote_By_Address(linear_address : Bits(64))</code>
<callee>Unimplemented_Feature</callee>
<caller>Instr_CLDEMOTE</caller>
<var-used>True</var-used>
<var-used>False</var-used>
</operation>
I think it would be ideal if all prototype-only definitions had a semicolon at the end so that they could be parsed as prototypes without extra string manipulation.
Why Is This Needed?
Makes it easier to parse the contents of definitions.xml.gz programmatically. I believe the missing semicolons are Cache::Demote_By_Address, Cache::Flush_By_Address,
Cache::Invalidate, Cache::Writeback,
Cache::Writeback_By_Address, Check_New_TSS,
Enqueue_Command_Accepted, Enter_SMM,
FP87::Check_For_Pending_Unmasked_Floating_Point_Exceptions,
FP::Pack, FRED::Set_CS_Segment_For_CPL3,
FRED::Set_SS_Segment_For_CPL3, Flags_To_Save_On_Exception,
Get_Memory_Type, Get_Repeat_String_Stride, IO_Read, IO_Write,
Iret_Pop_RIP_CS_Flags, Is_RDMSR_Allowed, Is_WRMSR_Allowed,
Load_New_TSS, MSR, Memory_Fence, Memory_Load_Fence,
Memory_Store_Fence, PCONFIG::MKTME_Key_Program,
PCONFIG::TSE_Key_Program, PCONFIG::TSE_Key_Program_Wrapped,
PMC::Clear_Performance_Metrics, PMC::Read_Fixed_Counter,
PMC::Read_General_Counter, PMC::Read_Performance_Metrics,
PT::Write_FUP_Packet, PT::Write_PTW_Packet, Physical_Mem_Read,
Physical_Mem_Read_PTW, Physical_Mem_Write, Physical_Mem_Write_PTW,
RDMSR_Behavior, Read_Time_Stamp_Counter,
Reset_Prediction_History, Std::Bits::Count_Leading_Sign_Bits,
Std::Bits::Is_All_Ones, Std::Bits::Is_Parity_Even,
Std::Bits::Is_Parity_Odd, Std::Bits::Is_Zero,
Std::Bits::Sign_Extend, Std::Bits::Signed_Saturate,
Std::Bits::Unsigned_Saturate, Std::Bits::Zero_Extend,
Std::Integer::Abs, Std::Integer::Is_Even, Std::Integer::Max,
Std::Integer::Min, TLB::Invalidate_All_Entries,
TLB::Invalidate_By_PCID, TSX::Commit_Transaction,
TSX::Enter_Transaction, TSX::RTM_Process_Abort,
Triple_Fault_Shutdown, VM_Exit, WRMSR_Behavior, Write_CR,
Write_DR
Activity
alastairreid commentedon Nov 23, 2026
Thanks for the suggestion. This is a good idea.
I've implemented it but I'm leaving this issue open because I won't be able to test until I next update the website.