aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/serialport.h
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-25 00:32:54 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-25 00:32:54 +0100
commita921347d7e4ceb212021599469e38c5ac9e19598 (patch)
tree1268231267ce58f9a1d8d6055586be67ec54b649 /qtmips_machine/serialport.h
parent076d85eaeeeb5ca37cfa6836cb8dd3c5368cf424 (diff)
downloadqtmips-a921347d7e4ceb212021599469e38c5ac9e19598.tar.gz
qtmips-a921347d7e4ceb212021599469e38c5ac9e19598.tar.bz2
qtmips-a921347d7e4ceb212021599469e38c5ac9e19598.zip
Change serial port peripheral to match SPIM registers definition.
Still Tx only and keep 0xffffc000 base to allows single instruction LW and SW access. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/serialport.h')
-rw-r--r--qtmips_machine/serialport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qtmips_machine/serialport.h b/qtmips_machine/serialport.h
index 2b14a7e..add1fe6 100644
--- a/qtmips_machine/serialport.h
+++ b/qtmips_machine/serialport.h
@@ -58,6 +58,9 @@ signals:
public:
bool wword(std::uint32_t address, std::uint32_t value);
std::uint32_t rword(std::uint32_t address, bool debug_access = false) const;
+private:
+ std::uint32_t rx_st_reg;
+ std::uint32_t tx_st_reg;
};
}