Skip to content

Commit e5ea7ef

Browse files
committed
fix: add forward declaration for ldst_inst_stats before tag_array
tag_array and baseline_cache use ldst_inst_stats* in their fill() signatures, but the full class definition appears later in the header. Add a forward declaration so the compiler recognizes the pointer type. https://claude.ai/code/session_013NsDX12L3Cw97hFtCBFZrQ
1 parent d2adddf commit e5ea7ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gpgpu-sim/gpu-cache.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,8 @@ class l2_cache_config : public cache_config {
953953
linear_to_raw_address_translation *m_address_mapping;
954954
};
955955

956+
class ldst_inst_stats; // forward declaration
957+
956958
class tag_array {
957959
public:
958960
// Use this constructor

0 commit comments

Comments
 (0)