-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstore_buffer.cpp
More file actions
74 lines (64 loc) · 2.1 KB
/
Copy pathstore_buffer.cpp
File metadata and controls
74 lines (64 loc) · 2.1 KB
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
67
68
69
70
71
72
73
/* _ooOoo_
o8888888o
88" . "88
(| -_- |)
O\ = /O
____/`---'\____
. ' \\| |// `.
/ \\||| : |||// \
/ _||||| -:- |||||- \
| | \\\ - /// | |
| \_| ''\---/'' | |
\ .-\__ `-` ___/-. /
___`. .' /--.--\ `. . __
."" '< `.___\_<|>_/___.' >'"".
| | : `- \`.;`\ _ /`;.`/ - ` : | |
\ \ `-. \_ __\ /__ _/ .-` / /
======`-.____`-.___\_____/___.-`____.-'======
`=---='
.............................................
佛祖保佑 永无BUG
佛曰:
写字楼里写字间,写字间里程序员;
程序人员写程序,又拿程序换酒钱。
酒醒只在网上坐,酒醉还来网下眠;
酒醉酒醒日复日,网上网下年复年。
但愿老死电脑间,不愿鞠躬老板前;
奔驰宝马贵者趣,公交自行程序员。
别人笑我忒疯癫,我笑自己命太贱;
不见满街漂亮妹,哪个归得程序员?
*/
/**
* store_buffer.cpp
*
* Copyright (C) 2024 SCTY
*
* Description:
*
* Revision History:
*
* 2025-01-13 Created By YangLing (yl.tienon@gmail.com)
*/
#if defined(HAVE_STORE_BUFFER)
#include "store_buffer.hpp"
store_buffer::store_buffer(const pr_data_opt_t & a, const pr_data_val_t & d) : addr(a), data(d)
{
flag = false;
}
void store_buffer::set_flag(void)
{
flag = true;
}
void store_buffer::set_data(const pr_data_val_t & d)
{
data = d;
}
const pr_data_val_t & store_buffer::get_data(void) const
{
return data;
}
const pr_data_opt_t & store_buffer::get_addr(void) const
{
return addr;
}
#endif // HAVE_STORE_BUFFER