Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = ["iris-gui"]
members = ["iris-gui", "iris-hostcall", "iris-hostgl"]

[package]
name = "iris"
Expand Down Expand Up @@ -270,6 +270,20 @@ ultra64 = ["dep:shared_memory", "dep:raw_sync"]
# it at runtime with `kind = "daynaport"` in an `[scsi.N]` section.
daynaport = []

# Host services for IRIX programs, reached through the private system calls
# 3000-3009 (iris-hostcall/): the trap in `exec_syscall` and the self-test
# service. The trap answers only user-mode `syscall`s outside a delay slot,
# and only for a number a service is registered for; everything else goes to
# IRIX untouched. Off by default -- a guest that never issues one cannot tell
# the difference.
hostcall = ["dep:iris-hostcall"]
# Host OpenGL for IRIX programs (iris-hostgl/): host call 3000, answered by
# replaying the replacement libGL's command stream on the host GPU. The IRIX
# side libraries are the iris-guest-tools project
# (github.com/atomchild411/iris-guest-tools). macOS only for now (CGL); on
# other hosts the service is not registered and the guest's libGL says so.
hostgl = ["hostcall", "dep:iris-hostgl"]

[dependencies]
clap = { version = "4", features = ["derive"] }
log = "0.4"
Expand Down Expand Up @@ -310,6 +324,8 @@ libchdman-rs = { version = "0.289", features = ["prebuilt"], optional = true }
pcap = { version = "2", optional = true }
shared_memory = { version = "0.12", optional = true }
raw_sync = { version = "0.1", optional = true }
iris-hostcall = { path = "iris-hostcall", optional = true }
iris-hostgl = { path = "iris-hostgl", optional = true }
[target.'cfg(target_os = "macos")'.dependencies]
nokhwa = { version = "0.10", features = ["input-avfoundation"], optional = true }

Expand Down
9 changes: 9 additions & 0 deletions iris-hostcall/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "iris-hostcall"
version = "0.1.0"
edition = "2021"
description = "Host services for IRIX programs under IRIS, reached through a private system call"
license = "BSD-3-Clause"

[dependencies]
parking_lot = "0.12"
Loading
Loading