Skip to content

Commit 29b9acb

Browse files
authored
Move RS Struct into Issue Queue Module (#475)
No Perf Drift.
1 parent e0b314f commit 29b9acb

3 files changed

Lines changed: 15 additions & 10 deletions

File tree

src/exec_ports.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include "general.param.h"
3939

4040
#include "exec_stage.h"
41+
#include "node_issue_queue.h"
4142
#include "node_stage.h"
4243
#include "stat_trace.h"
4344
#include "table_info.h"

src/node_issue_queue.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,21 @@
3434
extern "C" {
3535
#endif
3636

37+
#include "exec_stage.h"
3738
#include "op.h"
3839

40+
/**************************************************************************************/
41+
/* Structures */
42+
43+
typedef struct Reservation_Station_struct {
44+
uns proc_id;
45+
char name[EXEC_PORTS_MAX_NAME_LEN]; // unique name of the RS, from exec_ports.def
46+
uns32 size; // 0 is infinite
47+
Func_Unit** connected_fus; // FUs that this reservation station is connected to.
48+
uns32 num_fus; // number of fus that this rs is connected to.
49+
uns32 rs_op_count; // number of ops in this reservation station
50+
} Reservation_Station;
51+
3952
/**************************************************************************************/
4053
/* Constexpr */
4154

src/node_stage.h

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,12 @@
2929
#ifndef __NODE_STAGE_H__
3030
#define __NODE_STAGE_H__
3131

32-
#include "exec_stage.h"
32+
#include "node_issue_queue.h"
3333
#include "stage_data.h"
3434

3535
/**************************************************************************************/
3636
// Types
3737

38-
typedef struct Reservation_Station_struct {
39-
uns proc_id;
40-
char name[EXEC_PORTS_MAX_NAME_LEN]; // unique name of the RS, from exec_ports.def
41-
uns32 size; // 0 is infinite
42-
Func_Unit** connected_fus; // FUs that this reservation station is connected to.
43-
uns32 num_fus; // number of fus that this rs is connected to.
44-
uns32 rs_op_count; // number of ops in this reservation station
45-
} Reservation_Station;
46-
4738
typedef struct Node_Stage_struct {
4839
uns proc_id;
4940
Stage_Data sd; // stage interface data

0 commit comments

Comments
 (0)