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

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: 
1.1.1.8 ! root        7: //
        !             8: // Pluto-X (独自の仮想ボード)
        !             9: //
        !            10: 
1.1       root       11: #pragma once
                     12: 
                     13: #include "device.h"
1.1.1.3   root       14: #include <sys/time.h>
1.1       root       15: 
1.1.1.7   root       16: class PlutoDevice : public IODevice
1.1       root       17: {
1.1.1.3   root       18:        using inherited = IODevice;
1.1       root       19:  public:
                     20:        PlutoDevice();
1.1.1.5   root       21:        virtual ~PlutoDevice() override;
1.1       root       22: 
1.1.1.8 ! root       23:        void ResetHard(bool poweron) override;
1.1.1.4   root       24: 
1.1.1.3   root       25:        uint64 Read8(uint32 addr) override;
                     26:        uint64 Read16(uint32 addr) override;
                     27:        uint64 Read32(uint32 addr) override;
                     28:        uint64 Write8(uint32 addr, uint32 data) override;
                     29:        uint64 Write16(uint32 addr, uint32 data) override;
                     30:        uint64 Peek8(uint32 addr) override;
1.1       root       31: 
                     32:  private:
1.1.1.3   root       33:        // ROM
                     34:        static const uint16 rom[];
                     35: 
                     36:        // ホストファイル起動
                     37:        uint32 ROM_Load();
                     38: 
                     39:        // ベンチマーク
1.1       root       40:        void write_8_benchmark(uint32 addr, uint32 data);
                     41:        void benchmark_start(uint32 data);
                     42:        void benchmark_end();
1.1.1.4   root       43:        int m_count {};
                     44:        int m_test_num {};
                     45:        const char *m_test_name {};
                     46:        int m_inst_len {};
                     47:        int m_inst_cycle {};
                     48:        int m_start_addr {};
1.1       root       49:        timeval m_start {};
                     50:        timeval m_total {};
                     51: };
1.1.1.6   root       52: 
1.1.1.8 ! root       53: extern PlutoDevice *gPluto;

unix.superglobalmegacorp.com

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