Annotation of nono/vm/pluto.h, revision 1.1.1.7

1.1       root        1: //
                      2: // nono
1.1.1.3   root        3: // Copyright (C) 2020 nono project
                      4: // Licensed under nono-license.txt
1.1       root        5: //
                      6: 
                      7: #pragma once
                      8: 
                      9: #include "device.h"
1.1.1.3   root       10: #include <sys/time.h>
1.1       root       11: 
1.1.1.7 ! root       12: class PlutoDevice : public IODevice
1.1       root       13: {
1.1.1.3   root       14:        using inherited = IODevice;
1.1       root       15:  public:
                     16:        PlutoDevice();
1.1.1.5   root       17:        virtual ~PlutoDevice() override;
1.1       root       18: 
1.1.1.4   root       19:        void ResetHard() override;
                     20: 
1.1.1.3   root       21:        uint64 Read8(uint32 addr) override;
                     22:        uint64 Read16(uint32 addr) override;
                     23:        uint64 Read32(uint32 addr) override;
                     24:        uint64 Write8(uint32 addr, uint32 data) override;
                     25:        uint64 Write16(uint32 addr, uint32 data) override;
                     26:        uint64 Peek8(uint32 addr) override;
1.1       root       27: 
                     28:  private:
1.1.1.3   root       29:        // ROM
                     30:        static const uint16 rom[];
                     31: 
                     32:        // ホストファイル起動
                     33:        uint32 ROM_Load();
                     34: 
                     35:        // ベンチマーク
1.1       root       36:        void write_8_benchmark(uint32 addr, uint32 data);
                     37:        void benchmark_start(uint32 data);
                     38:        void benchmark_end();
1.1.1.4   root       39:        int m_count {};
                     40:        int m_test_num {};
                     41:        const char *m_test_name {};
                     42:        int m_inst_len {};
                     43:        int m_inst_cycle {};
                     44:        int m_start_addr {};
1.1       root       45:        timeval m_start {};
                     46:        timeval m_total {};
                     47: };
1.1.1.6   root       48: 
                     49: extern std::unique_ptr<PlutoDevice> gPluto;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.