I managed to build this project under Ubuntu Linux. However, it failed because there is no required video.h. GCC complained below:
emulator.h:7:10: fatal error: video.h: No such file or directory
7 | #include "video.h"
| ^~~~~~~~~
compilation terminated.
make: *** [Makefile:17: emulator.o] Error 1
Also, I have to apply the following changes:
diff --git a/src/bus.c b/src/bus.c
index e302eee..06c7381 100644
--- a/src/bus.c
+++ b/src/bus.c
@@ -18,6 +18,7 @@
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
diff --git a/src/cpu.h b/src/cpu.h
index c0d0164..112798f 100644
--- a/src/cpu.h
+++ b/src/cpu.h
@@ -22,6 +22,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifndef __CPU_H__
#define __CPU_H__
+#include <stdint.h>
#include <sys/types.h>
#include <stdbool.h>
#include <pthread.h>
diff --git a/src/csr.h b/src/csr.h
index ac1f38f..6ba297a 100644
--- a/src/csr.h
+++ b/src/csr.h
@@ -1,6 +1,7 @@
#ifndef __CSR_H__
#define __CSR_H__
+#include <stdint.h>
#include <sys/types.h>
#include "config.h"
#include "mmio.h"
diff --git a/src/mmu.h b/src/mmu.h
index a4c5b8b..d69cc5e 100644
--- a/src/mmu.h
+++ b/src/mmu.h
@@ -1,6 +1,7 @@
#ifndef __MMU_H__
#define __MMU_H__
+#include <stdint.h>
#include <stdbool.h>
#include <sys/types.h>
I managed to build this project under Ubuntu Linux. However, it failed because there is no required
video.h. GCC complained below:Also, I have to apply the following changes: