-
Notifications
You must be signed in to change notification settings - Fork 1
/
processor.cpp
67 lines (56 loc) · 2.45 KB
/
processor.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/***************************************************************************
Processor.cpp - description
-------------------
begin : Sat Aug 17 2002
copyright : (C) 2002 by Davide Patti
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "processor.h"
Processor::Processor(){
num_clusters.set_label("num_clusters");
integer_units.set_label("integer_units");
float_units.set_label("float_units");
branch_units.set_label("branch_units");
memory_units.set_label("memory_units");
gpr_static_size.set_label("gpr_static_size");
fpr_static_size.set_label("fpr_static_size");
pr_static_size.set_label("pr_static_size");
cr_static_size.set_label("cr_static_size");
btr_static_size.set_label("btr_static_size");
}
Processor::~Processor(){
}
void Processor::set_to_default()
{
num_clusters.set_to_default();
integer_units.set_to_default();
float_units.set_to_default();
branch_units.set_to_default();
memory_units.set_to_default();
gpr_static_size.set_to_default();
fpr_static_size.set_to_default();
pr_static_size.set_to_default();
cr_static_size.set_to_default();
btr_static_size.set_to_default();
}
void Processor::set_config(const Configuration& conf)
{
num_clusters.set_val(conf.num_clusters);
integer_units.set_val(conf.integer_units);
float_units.set_val(conf.float_units);
branch_units.set_val(conf.branch_units);
memory_units.set_val(conf.memory_units);
gpr_static_size.set_val(conf.gpr_static_size);
fpr_static_size.set_val(conf.fpr_static_size);
pr_static_size.set_val(conf.pr_static_size);
cr_static_size.set_val(conf.cr_static_size);
btr_static_size.set_val(conf.btr_static_size);
}