aboutsummaryrefslogtreecommitdiff
path: root/src/real_mode
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-06-23 23:43:06 -0700
committeriximeow <me@iximeow.net>2024-06-23 23:43:06 -0700
commitb8a294db5ae6831c54be368e41fa8418a6f73bcb (patch)
treefb1f2dc8511ce97d94a2a3299981e418380b8500 /src/real_mode
parent0e3536379e25cf458eaf758fae9e0cb773cbcae6 (diff)
remove selects_cs(), cs() now does the right thing
Diffstat (limited to 'src/real_mode')
-rw-r--r--src/real_mode/mod.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/real_mode/mod.rs b/src/real_mode/mod.rs
index 1ea89cd..b29cd1a 100644
--- a/src/real_mode/mod.rs
+++ b/src/real_mode/mod.rs
@@ -4790,11 +4790,8 @@ impl Prefixes {
fn set_lock(&mut self) { self.bits |= 0x4 }
#[inline]
pub fn lock(&self) -> bool { self.bits & 0x4 == 4 }
- #[deprecated(since = "0.0.1", note = "pub fn cs has never returned `bool` indicating the current selector is `cs`. use `selects_cs` for this purpose, until 2.x that will correct `pub fn cs`.")]
#[inline]
- pub fn cs(&mut self) {}
- #[inline]
- pub fn selects_cs(&self) -> bool { self.segment == Segment::CS }
+ pub fn cs(&self) -> bool { self.segment == Segment::CS }
#[inline]
fn set_cs(&mut self) { self.segment = Segment::CS }
#[inline]