@ -49,6 +49,7 @@ static void help(int exit_code = 1)
fprintf ( stderr , " --abstract-rti=<n> Number of Run-Test/Idle cycles "
" required for an abstract command to execute [default 0] \n " ) ;
fprintf ( stderr , " --without-hasel Debug module supports hasel \n " ) ;
fprintf ( stderr , " --debug-no-abstract-csr Debug module won't support abstract to authenticate \n " ) ;
exit ( exit_code ) ;
}
@ -115,6 +116,7 @@ int main(int argc, char** argv)
unsigned dmi_rti = 0 ;
unsigned abstract_rti = 0 ;
bool support_hasel = true ;
bool support_abstract_csr_access = true ;
std : : vector < int > hartids ;
auto const hartids_parser = [ & ] ( const char * s ) {
@ -168,6 +170,8 @@ int main(int argc, char** argv)
[ & ] ( const char * s ) { abstract_rti = atoi ( s ) ; } ) ;
parser . option ( 0 , " without-hasel " , 0 ,
[ & ] ( const char * s ) { support_hasel = false ; } ) ;
parser . option ( 0 , " debug-no-abstract-csr " , 0 ,
[ & ] ( const char * s ) { support_abstract_csr_access = false ; } ) ;
auto argv1 = parser . parse ( argv ) ;
std : : vector < std : : string > htif_args ( argv1 , ( const char * const * ) argv + argc ) ;
@ -179,7 +183,7 @@ int main(int argc, char** argv)
sim_t s ( isa , nprocs , halted , start_pc , mems , htif_args , std : : move ( hartids ) ,
progsize , max_bus_master_bits , require_authentication ,
abstract_rti , support_hasel ) ;
abstract_rti , support_hasel , support_abstract_csr_access ) ;
std : : unique_ptr < remote_bitbang_t > remote_bitbang ( ( remote_bitbang_t * ) NULL ) ;
std : : unique_ptr < jtag_dtm_t > jtag_dtm (
new jtag_dtm_t ( & s . debug_module , dmi_rti ) ) ;