1 |
2 |
alfik |
/*
|
2 |
|
|
* Copyright (c) 2014, Aleksander Osman
|
3 |
|
|
* All rights reserved.
|
4 |
|
|
*
|
5 |
|
|
* Redistribution and use in source and binary forms, with or without
|
6 |
|
|
* modification, are permitted provided that the following conditions are met:
|
7 |
|
|
*
|
8 |
|
|
* * Redistributions of source code must retain the above copyright notice, this
|
9 |
|
|
* list of conditions and the following disclaimer.
|
10 |
|
|
*
|
11 |
|
|
* * Redistributions in binary form must reproduce the above copyright notice,
|
12 |
|
|
* this list of conditions and the following disclaimer in the documentation
|
13 |
|
|
* and/or other materials provided with the distribution.
|
14 |
|
|
*
|
15 |
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
16 |
|
|
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
17 |
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
18 |
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
19 |
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
20 |
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
21 |
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
22 |
|
|
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
23 |
|
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
24 |
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
25 |
|
|
*/
|
26 |
|
|
|
27 |
|
|
package ao486.module.memory;
|
28 |
|
|
|
29 |
|
|
public class Input {
|
30 |
|
|
public boolean finished = false;
|
31 |
|
|
|
32 |
|
|
public boolean rst_n = true;
|
33 |
|
|
|
34 |
|
|
public boolean read_do = false;
|
35 |
|
|
public long read_cpl = 0; //2
|
36 |
|
|
public long read_address = 0; //32
|
37 |
|
|
public long read_length = 0; //4
|
38 |
|
|
public boolean read_lock = false;
|
39 |
|
|
public boolean read_rmw = false;
|
40 |
|
|
|
41 |
|
|
public boolean write_do = false;
|
42 |
|
|
public long write_cpl = 0; //2
|
43 |
|
|
public long write_address = 0; //32
|
44 |
|
|
public long write_length = 0; //3
|
45 |
|
|
public boolean write_lock = false;
|
46 |
|
|
public boolean write_rmw = false;
|
47 |
|
|
public long write_data = 0; //32
|
48 |
|
|
|
49 |
|
|
public boolean tlbcheck_do = false;
|
50 |
|
|
public long tlbcheck_address = 0; //32
|
51 |
|
|
public boolean tlbcheck_rw = false;
|
52 |
|
|
|
53 |
|
|
public boolean tlbflushsingle_do = false;
|
54 |
|
|
public long tlbflushsingle_address = 0; //32
|
55 |
|
|
|
56 |
|
|
public boolean tlbflushall_do = false;
|
57 |
|
|
|
58 |
|
|
public boolean invdcode_do = false;
|
59 |
|
|
public boolean invddata_do = false;
|
60 |
|
|
public boolean wbinvddata_do = false;
|
61 |
|
|
|
62 |
|
|
public long cpl = 0; //2
|
63 |
|
|
public long eip = 0; //32
|
64 |
|
|
public long cs_base = 0; //32
|
65 |
|
|
public long cs_limit = 0; //32
|
66 |
|
|
|
67 |
|
|
public boolean prefetchfifo_accept_do = false;
|
68 |
|
|
|
69 |
|
|
public boolean cr0_pg = false;
|
70 |
|
|
public boolean cr0_wp = false;
|
71 |
|
|
public boolean cr0_am = false;
|
72 |
|
|
public boolean cr0_cd = true;
|
73 |
|
|
public boolean cr0_nw = true;
|
74 |
|
|
|
75 |
|
|
public boolean acflag = false;
|
76 |
|
|
|
77 |
|
|
public long cr3_base = 0; //32
|
78 |
|
|
public boolean cr3_pcd = false;
|
79 |
|
|
public boolean cr3_pwt = false;
|
80 |
|
|
|
81 |
|
|
public boolean pipeline_after_read_empty = false;
|
82 |
|
|
public boolean pipeline_after_prefetch_empty = false;
|
83 |
|
|
|
84 |
|
|
public boolean pr_reset = false;
|
85 |
|
|
public boolean rd_reset = false;
|
86 |
|
|
public boolean exe_reset = false;
|
87 |
|
|
public boolean wr_reset = false;
|
88 |
|
|
|
89 |
|
|
public boolean avm_waitrequest = false;
|
90 |
|
|
public boolean avm_readdatavalid = false;
|
91 |
|
|
public long avm_readdata = 0; //32
|
92 |
|
|
}
|