• J
    cpu: Unify CPUID data structures · 8806c0db
    Jiri Denemark 提交于
    So far, CPUID data were stored in two different data structures. First
    of them was a structure allowing direct access for CPUID data according
    to function number and the second was a plain array of struct
    cpuX86cpuid. This was a silly design which resulted in converting data
    from one type to the other and back again or implementing similar
    functionality for both data structures.
    
    The patch leaves only the direct access structure. This makes the code
    both smaller and more maintainable since operations on different objects
    can use common low-level operations.
    
    All 57 tests for cpu subsystem still pass after this rewrite.
    8806c0db
cpu_x86.c 42.0 KB