Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


updates to enable functionality necessary for SEABIOS to run
[palacios.git] / palacios / include / palacios / vmm_instr_decoder.h
index 6e9785e..a7c63fb 100644 (file)
@@ -478,6 +478,24 @@ static inline int decode_cr(struct guest_info * core,
     return 0;
 }
 
+static struct v3_segment * get_instr_segment(struct guest_info * core, struct x86_instr * instr) {
+    struct v3_segment * seg = &(core->segments.ds);
+
+    if (instr->prefixes.cs_override) {
+       seg = &(core->segments.cs);
+    } else if (instr->prefixes.es_override) {
+       seg = &(core->segments.es);
+    } else if (instr->prefixes.ss_override) {
+       seg = &(core->segments.ss);
+    } else if (instr->prefixes.fs_override) {
+       seg = &(core->segments.fs);
+    } else if (instr->prefixes.gs_override) {
+       seg = &(core->segments.gs);
+    } 
+
+    return seg;
+}
+
 
 
 #define ADDR_MASK(val, length) ({                            \