@@ -9,13 +9,12 @@ using namespace manifold::uarch;
9
9
using namespace manifold ::qsim_proxy;
10
10
using namespace Qsim ;
11
11
12
- void QsimProxyBuilder::read_config (Config& config, const char * stateFile, const char * appFile)
12
+ void QsimProxyBuilder::read_config (Config& config, const char *appFile)
13
13
{
14
- strcpy (state_file, stateFile);
15
- strcpy (app_file, appFile);
16
-
17
14
try {
18
15
qsim_interrupt_handler_clock = config.lookup (" qsim_interrupt_handler_clock" );
16
+ const char * stateFile = config.lookup (" processor.state" );
17
+ strcpy (state_file,stateFile);
19
18
uint64_t default_clock = config.lookup (" default_clock" );
20
19
qsim_interrupt_interval = default_clock/qsim_interrupt_handler_clock;
21
20
}
@@ -27,6 +26,8 @@ void QsimProxyBuilder::read_config(Config& config, const char* stateFile, const
27
26
cout << e.getPath () << " has incorrect type." << endl;
28
27
exit (1 );
29
28
}
29
+
30
+ strcpy (app_file, appFile);
30
31
}
31
32
32
33
void QsimProxyBuilder::create_qsim (int LP)
@@ -54,13 +55,12 @@ void QsimProxyBuilder::print_stats(std::ostream& out)
54
55
55
56
56
57
57
- void QsimLibBuilder::read_config (Config& config, const char * stateFile, const char * appFile)
58
+ void QsimLibBuilder::read_config (Config& config, const char * appFile)
58
59
{
59
- strcpy (state_file, stateFile);
60
- strcpy (app_file, appFile);
61
-
62
60
try {
63
61
qsim_interrupt_handler_clock = config.lookup (" qsim_interrupt_handler_clock" );
62
+ const char * stateFile = config.lookup (" processor.state" );
63
+ strcpy (state_file,stateFile);
64
64
}
65
65
catch (SettingNotFoundException e) {
66
66
cout << e.getPath () << " not set." << endl;
@@ -70,6 +70,7 @@ void QsimLibBuilder::read_config(Config& config, const char* stateFile, const ch
70
70
cout << e.getPath () << " has incorrect type." << endl;
71
71
exit (1 );
72
72
}
73
+ strcpy (app_file, appFile);
73
74
}
74
75
75
76
void QsimLibBuilder::create_qsim (int LP)
0 commit comments