Generate and use SCR address header files
This uses the new SCRFile changes to generate a header file containing a list of all the SCRs in a core to remove the magic constant "63" (the HTIF clock divider control register) and replace it with a generated number (which is still 63).
This commit is contained in:
@ -16,7 +16,7 @@ class htif_emulator_t : public htif_pthread_t
|
||||
|
||||
void set_clock_divisor(int divisor, int hold_cycles)
|
||||
{
|
||||
write_cr(-1, 63, divisor | hold_cycles << 16);
|
||||
write_cr(-1, UNCORE_SCR__HTIF_IO_CLOCK_DIVISOR, divisor | hold_cycles << 16);
|
||||
}
|
||||
|
||||
void start()
|
||||
|
Reference in New Issue
Block a user