v86 0.5.12 → 0.5.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3951,22 +3951,7 @@ $VirtioConsole$$module$src$virtio_console$$.prototype.Ack = function($queue_id$j
3951
3951
  function $PS2$$module$src$ps2$$($cpu$jscomp$12$$, $bus$jscomp$6$$) {
3952
3952
  this.cpu = $cpu$jscomp$12$$;
3953
3953
  this.bus = $bus$jscomp$6$$;
3954
- this.use_mouse = this.enable_mouse_stream = !1;
3955
- this.have_mouse = !0;
3956
- this.mouse_clicks = this.mouse_delta_y = this.mouse_delta_x = 0;
3957
- this.have_keyboard = !0;
3958
- this.next_read_resolution = this.next_read_rate = this.next_handle_scan_code_set = this.next_read_led = this.next_read_sample = this.next_is_mouse_command = this.enable_keyboard_stream = !1;
3959
- this.kbd_buffer = new $ByteQueue$$module$src$lib$$(1024);
3960
- this.last_port60_byte = 0;
3961
- this.sample_rate = 100;
3962
- this.mouse_id = this.mouse_detect_state = 0;
3963
- this.mouse_reset_workaround = !1;
3964
- this.wheel_movement = 0;
3965
- this.resolution = 4;
3966
- this.scaling2 = !1;
3967
- this.last_mouse_packet = -1;
3968
- this.mouse_buffer = new $ByteQueue$$module$src$lib$$(1024);
3969
- this.next_byte_is_aux = this.next_byte_is_ready = !1;
3954
+ this.reset();
3970
3955
  this.bus.register("keyboard-code", function($code$jscomp$1$$) {
3971
3956
  this.kbd_send_code($code$jscomp$1$$);
3972
3957
  }, this);
@@ -3982,14 +3967,32 @@ function $PS2$$module$src$ps2$$($cpu$jscomp$12$$, $bus$jscomp$6$$) {
3982
3967
  this.wheel_movement = Math.min(7, Math.max(-8, this.wheel_movement));
3983
3968
  this.send_mouse_packet(0, 0);
3984
3969
  }, this);
3985
- this.command_register = 5;
3986
- this.controller_output_port = 0;
3987
- this.read_controller_output_port = this.read_command_register = this.read_output_register = !1;
3988
3970
  $cpu$jscomp$12$$.io.register_read(96, this, this.port60_read);
3989
3971
  $cpu$jscomp$12$$.io.register_read(100, this, this.port64_read);
3990
3972
  $cpu$jscomp$12$$.io.register_write(96, this, this.port60_write);
3991
3973
  $cpu$jscomp$12$$.io.register_write(100, this, this.port64_write);
3992
3974
  }
3975
+ $PS2$$module$src$ps2$$.prototype.reset = function() {
3976
+ this.use_mouse = this.enable_mouse_stream = !1;
3977
+ this.have_mouse = !0;
3978
+ this.mouse_clicks = this.mouse_delta_y = this.mouse_delta_x = 0;
3979
+ this.have_keyboard = !0;
3980
+ this.next_read_resolution = this.next_read_rate = this.next_handle_scan_code_set = this.next_read_led = this.next_read_sample = this.next_is_mouse_command = this.enable_keyboard_stream = !1;
3981
+ this.kbd_buffer = new $ByteQueue$$module$src$lib$$(1024);
3982
+ this.last_port60_byte = 0;
3983
+ this.sample_rate = 100;
3984
+ this.mouse_id = this.mouse_detect_state = 0;
3985
+ this.mouse_reset_workaround = !1;
3986
+ this.wheel_movement = 0;
3987
+ this.resolution = 4;
3988
+ this.scaling2 = !1;
3989
+ this.last_mouse_packet = -1;
3990
+ this.mouse_buffer = new $ByteQueue$$module$src$lib$$(1024);
3991
+ this.next_byte_is_aux = this.next_byte_is_ready = !1;
3992
+ this.command_register = 5;
3993
+ this.controller_output_port = 0;
3994
+ this.read_controller_output_port = this.read_command_register = this.read_output_register = !1;
3995
+ };
3993
3996
  $PS2$$module$src$ps2$$.prototype.get_state = function() {
3994
3997
  var $state$jscomp$25$$ = [];
3995
3998
  $state$jscomp$25$$[0] = this.enable_mouse_stream;
@@ -7534,6 +7537,7 @@ $CPU$$module$src$cpu$$.prototype.reboot_internal = function() {
7534
7537
  this.devices.virtio_9p && this.devices.virtio_9p.reset();
7535
7538
  this.devices.virtio_console && this.devices.virtio_console.reset();
7536
7539
  this.devices.virtio_net && this.devices.virtio_net.reset();
7540
+ this.devices.ps2 && this.devices.ps2.reset();
7537
7541
  this.load_bios();
7538
7542
  };
7539
7543
  $CPU$$module$src$cpu$$.prototype.reset_memory = function() {